Searched refs:payload (Results 1 – 6 of 6) sorted by relevance
/kernel/tests/net/test/ |
D | xfrm_test.py | 71 self.assertEquals(spi_seq, str(packet.payload)[:len(spi_seq)]) 72 self.assertEquals(length, len(packet.payload)) 78 payload = str(packet.payload)[8:] 79 self.assertEquals(length, len(payload)) 81 self.assertEquals(spi_seq, str(payload)[:len(spi_seq)]) 292 payload = str(packet.payload)[8:] 294 payload = spi_seq + payload[len(spi_seq):] 299 broken = payload[:25] + chr((ord(payload[25]) + 1) % 256) + payload[26:] 308 scapy.UDP(sport=4500, dport=encap_port) / payload)
|
D | packets.py | 107 def ACK(version, srcaddr, dstaddr, packet, payload=""): argument 111 ack_delta = was_syn_or_fin + len(original.payload) 112 desc = "TCP data" if payload else "TCP ACK" 113 flags = TCP_ACK | TCP_PSH if payload else TCP_ACK 119 payload) 125 ack_delta = was_syn_or_fin + len(original.payload) 159 udp.payload = str(udp.payload)[:1280-40-8]
|
D | multinetwork_test.py | 475 payload=UDP_PAYLOAD) 815 def SendBigPacket(version, s, dstaddr, netid, payload): argument 817 s.send(payload) 819 self.SendOnNetid(version, s, dstaddr, 1234, netid, payload, []) 844 payload = self.PAYLOAD_SIZE * "a" 847 SendBigPacket(version, s, dstaddr, netid, payload) 858 SendBigPacket, version, s, dstaddr, netid, payload)
|
D | tcp_test.py | 109 payload=net_test.UDP_PAYLOAD)
|
D | multinetwork_base.py | 457 def SendOnNetid(self, version, s, dstaddr, dstport, netid, payload, cmsgs): argument 464 csocket.Sendmsg(s, (dstaddr, dstport), payload, cmsgs, csocket.MSG_CONFIRM) 488 packets.append(ether.payload)
|
D | ping6_test.py | 208 self.IPv6Packet(ether.payload) 210 self.IPv4Packet(ether.payload)
|