Searched refs:UDP (Results 1 - 25 of 99) sorted by relevance

1234

/vpp/test/
H A Dtemplate_bd.py8 from scapy.layers.inet import IP, UDP namespace
22 UDP(sport=10000, dport=20000) /
30 UDP(sport=20000, dport=10000) /
59 """ Verify the Ether, IP, UDP, payload are equal in both
66 self.assertEqual(pkt1[UDP].sport, pkt2[UDP].sport)
67 self.assertEqual(pkt1[UDP].dport, pkt2[UDP].dport)
H A Dtest_trace_filter.py11 from scapy.layers.inet import IP, UDP namespace
69 " UDP: 192.168.1.10 - 192.168.1.20 -> 192.168.2.10\n"
70 " UDP: 1234 -> 2345\n"
112 UDP() /
116 UDP() /
120 UDP() /
131 UDP(chksum=0) /
135 UDP(chksum=0) /
H A Dtest_ip4_irb.py31 from scapy.layers.inet import IP, UDP namespace
119 UDP(sport=1234, dport=1234) /
140 UDP(sport=1234, dport=1234) /
159 udp = packet[IP][UDP]
160 payload_info = self.payload_to_info(packet[IP][UDP][Raw])
182 # UDP:
183 self.assertEqual(udp.sport, saved_packet[UDP].sport)
184 self.assertEqual(udp.dport, saved_packet[UDP].dport)
195 udp = packet[IP][UDP]
196 payload_info = self.payload_to_info(packet[IP][UDP][Ra
[all...]
H A Dtest_vxlan_gbp.py11 from scapy.layers.inet import IP, UDP namespace
26 UDP(sport=10000, dport=20000) /
34 UDP(sport=20000, dport=10000) /
40 its UDP, IP and Ethernet fields
44 UDP(sport=self.dport, dport=self.dport, chksum=0) /
80 # Verify UDP destination port is VXLAN GBP 48879, source UDP port could
82 self.assertEqual(pkt[UDP].dport, type(self).dport)
83 # Verify UDP checksum
185 """ Verify the Ether, IP, UDP, payloa
[all...]
H A Dipfix.py6 from scapy.layers.inet import UDP namespace
501 bind_layers(UDP, IPFIX, dport=4739)
H A Dtest_dvr.py12 from scapy.layers.inet import IP, UDP namespace
79 UDP(sport=1234, dport=1234) /
85 UDP(sport=1234, dport=1234) /
162 UDP(sport=1234, dport=1234) /
179 UDP(sport=1234, dport=1234) /
265 UDP(sport=1234, dport=1234) /
271 UDP(sport=1234, dport=1234) /
278 UDP(sport=1234, dport=1234) /
285 UDP(sport=1234, dport=1234) /
291 UDP(spor
[all...]
H A Dtest_udp.py11 from scapy.layers.inet import IP, UDP namespace
19 """ UDP Encap Test Case """
71 self.assertEqual(rx[UDP].sport, encap_obj.src_port)
72 self.assertEqual(rx[UDP].dport, encap_obj.dst_port)
77 self.assertEqual(rx[UDP].sport, encap_obj.src_port)
78 self.assertEqual(rx[UDP].dport, encap_obj.dst_port)
94 """ UDP Encap test
98 # construct a UDP encap object through each of the peers
133 # Routes via each UDP encap object - all combinations of v4 and v6.
170 UDP(spor
[all...]
H A Dtest_sixrd.py5 from scapy.layers.inet import IP, UDP, Ether namespace
90 p_ip6 = IPv6(src="1::1", dst="2002:AC10:0202::1", nh='UDP')
102 p_payload = UDP(sport=1234, dport=1234)
115 p_payload = UDP(sport=1234, dport=1234) / Raw(self.payload(plen))
127 p_ip6 = IPv6(src="1::1", dst="2002:AC10:0402::1", nh='UDP')
137 p_payload = UDP(sport=1234, dport=1234)
150 p_payload = UDP(sport=1234, dport=1234) / Raw(self.payload(plen))
179 UDP(sport=1234, dport=1234))
214 UDP(sport=1234, dport=1234))
253 UDP(spor
[all...]
H A Dtest_l2xc.py8 from scapy.layers.inet import IP, UDP namespace
132 UDP(sport=1234, dport=1234) /
154 udp = packet[UDP]
170 self.assertEqual(udp.sport, saved_packet[UDP].sport)
171 self.assertEqual(udp.dport, saved_packet[UDP].dport)
/vpp/src/plugins/svs/test/
H A Dtest_svs.py10 from scapy.layers.inet import IP, UDP, ICMP namespace
71 UDP(sport=1234, dport=1234) /
75 UDP(sport=1234, dport=1234) /
79 UDP(sport=1234, dport=1234) /
83 UDP(sport=1234, dport=1234) /
87 UDP(sport=1234, dport=1234) /
91 UDP(sport=1234, dport=1234) /
144 UDP(sport=1234, dport=1234) /
150 UDP(sport=1234, dport=1234) /
198 UDP(spor
[all...]
/vpp/src/plugins/nat/lib/
H A Dlib.h37 _ (UDP, 1, udp, "udp") \
/vpp/src/plugins/nat/test/
H A Dtest_ipsec_nat.py7 from scapy.layers.inet import ICMP, IP, TCP, UDP namespace
77 # UDP
80 UDP(sport=self.udp_port_in, dport=20),
93 # UDP
96 UDP(dport=self.udp_port_out, sport=20)),
113 packet.haslayer(UDP),
114 "unexpected UDP header in decrypted packet")
117 elif packet.haslayer(UDP):
118 if packet[UDP].payload:
120 packet[UDP][
[all...]
H A Dtest_dslite.py11 from scapy.layers.inet import IP, TCP, UDP, ICMP namespace
102 # UDP
106 UDP(sport=20000, dport=10000))
115 self.assertNotEqual(capture[UDP].sport, 20000)
116 self.assertEqual(capture[UDP].dport, 10000)
118 out_port = capture[UDP].sport
126 UDP(sport=10000, dport=out_port))
136 self.assertEqual(capture[UDP].sport, 10000)
137 self.assertEqual(capture[UDP].dport, 20000)
285 # UDP encapsulatio
[all...]
/vpp/src/plugins/dns/test/
H A Dtest_dns.py11 from scapy.layers.inet import IP, UDP, TCP, ICMP, icmptypes, icmpcodes namespace
48 UDP(sport=1234, dport=53) /
53 UDP(sport=1234, dport=53) /
/vpp/src/plugins/nat/extras/
H A Dnat_100ks.py6 base_pkt = Ether()/IP(dst="2.2.0.1")/UDP(dport=12)
20 vm.write(fv_name="tuple.port", pkt_offset="UDP.sport")
H A Dnat_10Ms.py6 base_pkt = Ether()/IP(dst="2.2.0.1")/UDP(dport=12)
20 vm.write(fv_name="tuple.port", pkt_offset="UDP.sport")
H A Dnat_10ks.py6 base_pkt = Ether()/IP(dst="2.2.0.1")/UDP(dport=12)
20 vm.write(fv_name="tuple.port", pkt_offset="UDP.sport")
H A Dnat_1Ms.py6 base_pkt = Ether()/IP(dst="2.2.0.1")/UDP(dport=12)
20 vm.write(fv_name="tuple.port", pkt_offset="UDP.sport")
H A Dnat_out2in_100ks.py6 base_pkt = Ether()/IP(src="2.2.0.1")/UDP(sport=12)
20 vm.write(fv_name="tuple.port", pkt_offset="UDP.dport")
H A Dnat_out2in_10Ms.py6 base_pkt = Ether()/IP(src="2.2.0.1")/UDP(sport=12)
20 vm.write(fv_name="tuple.port", pkt_offset="UDP.dport")
H A Dnat_out2in_10ks.py6 base_pkt = Ether()/IP(src="2.2.0.1")/UDP(sport=12)
20 vm.write(fv_name="tuple.port", pkt_offset="UDP.dport")
H A Dnat_out2in_1Ms.py6 base_pkt = Ether()/IP(src="2.2.0.1")/UDP(sport=12)
20 vm.write(fv_name="tuple.port", pkt_offset="UDP.dport")
H A Dnat_test_fast_path.py7 # base_pkt = Ether()/IP(dst="2.2.0.1")/UDP(dport=12)
21 # vm.write(fv_name="tuple.port", pkt_offset="UDP.sport")
45 pkt_offset="UDP.sport"),
47 pkt_offset="UDP.dport"),
51 base_pkt = Ether()/IP(src="16.0.0.1", dst="2.0.0.1")/UDP(dport=12, sport=1025)
H A Dnat_test_slow_path.py7 # base_pkt = Ether()/IP(dst="2.2.0.1")/UDP(dport=12)
21 # vm.write(fv_name="tuple.port", pkt_offset="UDP.sport")
43 pkt_offset="UDP.sport"),
45 pkt_offset="UDP.dport"),
49 base_pkt = Ether()/IP(src="16.0.0.1", dst="2.0.0.1")/UDP(dport=12, sport=1025)
/vpp/src/plugins/urpf/test/
H A Dtest_urpf.py9 from scapy.layers.inet import IP, UDP, ICMP namespace
56 UDP(sport=1234, dport=1234) /
62 UDP(sport=1234, dport=1234) /
68 UDP(sport=1234, dport=1234) /
159 UDP(sport=1234, dport=1234) /
178 UDP(sport=1236, dport=1236) /
184 UDP(sport=1236, dport=1236) /
190 UDP(sport=1236, dport=1236) /
281 UDP(sport=1236, dport=1236) /

Completed in 19 milliseconds

1234