Lines Matching refs:scapy
19 from scapy import all as scapy unknown
57 udp_hdr = packet[scapy.UDP]
303 incoming = (scapy.IP(src=remoteaddr, dst=myaddr) /
304 scapy.UDP(sport=4500, dport=encap_port) / payload)
305 incoming = scapy.IP(str(incoming))
327 scapy.IP(src=remoteaddr, dst=myaddr) / scapy.UDP(
507 IpType = {4: scapy.IP, 6: scapy.IPv6}[version]
509 scapy.UDP(sport=remote_port, dport=local_port) /
526 self.assertEqual(output_pkt[scapy.UDP].len, len("output_hello") + 8)
528 self.assertEqual(remote_port, output_pkt[scapy.UDP].dport)
530 self.assertEqual("output hello", str(output_pkt[scapy.UDP].payload))
571 IpType = {4: scapy.IP, 6: scapy.IPv6}[version]
573 scapy.UDP(sport=remote_port, dport=local_port) /
590 self.assertEqual(output_pkt[scapy.UDP].len, len("output_hello") + 8)
592 self.assertEqual(remote_port, output_pkt[scapy.UDP].dport)
593 self.assertEqual("output hello", str(output_pkt[scapy.UDP].payload))