Lines Matching refs:pack
435 data = struct.pack("!H", src_port) + struct.pack("!H", dst_port) + \
436 struct.pack("!H", payload_length) + struct.pack("!H", checksum)
489 data = bytearray([_type, code]) + struct.pack("!H", checksum)
693 expected_udp_dgram_bytes = struct.pack("!H", src_port) + struct.pack("!H", dst_port) + \
694 struct.pack("!H", payload_length) + struct.pack("!H", checksum) + payload
715 + struct.pack("!I", identification)
727 + struct.pack("!I", identification)
756 expected = bytearray([_type, code]) + struct.pack("!H", checksum) + body
1336 io.BytesIO(bytearray(struct.pack(">I", unused)) + data))
1367 data = struct.pack("!H", src_port) + struct.pack("!H", dst_port) + \
1368 struct.pack("!H", payload_length) + struct.pack("!H", checksum)