Searched refs:ICMP (Results 1 - 25 of 30) sorted by relevance

12

/vpp/src/plugins/nat/lib/
H A Dlib.h39 _ (ICMP, 3, icmp, "icmp")
/vpp/src/plugins/map/test/
H A Dtest_map_br.py14 from scapy.layers.inet import IP, UDP, ICMP, TCP, IPerror, UDPerror namespace
278 # Translation of ICMP Echo Request v4 -> v6 direction
289 icmp = ICMP(type="echo-request",
307 # Translation of ICMP Echo Reply v4 -> v6 direction
318 icmp = ICMP(type="echo-reply",
336 # Translation of ICMP Time Exceeded v4 -> v6 direction
347 icmp = ICMP(type="time-exceeded", code="ttl-zero-during-transit")
377 # Translation of ICMP Echo Request v6 -> v4 direction
399 self.assertEqual(rx_pkt[ICMP].type, ICMP(typ
[all...]
H A Dtest_map.py14 from scapy.layers.inet import IP, UDP, ICMP, TCP namespace
614 ICMP(type='time-exceeded',
628 ICMP(type='time-exceeded',
731 # ICMP packet fragmentation
732 payload = ICMP(id=6529) / self.payload(payload_len)
746 # ICMP packet fragmentation send fragments
747 payload = ICMP(id=6529) / self.payload(payload_len)
/vpp/test/
H A Dtest_ping.py3 from scapy.layers.inet import IP, UDP, ICMP namespace
73 icmp = p[ICMP]
109 icmp = p[ICMP]
H A Dtest_interface_crud.py16 from scapy.layers.inet import IP, ICMP namespace
48 :param list dst_ifs: IPv4 ICMP requests are send to interfaces
56 ICMP(id=i.sw_if_index, type='echo-request'))
65 :param list dst_ifs: Interfaces where was generated IPv4 ICMP requests.
71 icmp = pkt[ICMP]
H A Dtemplate_ipsec.py5 from scapy.layers.inet import IP, ICMP, TCP, UDP namespace
231 ICMP() / Raw(b'X' * payload_size))
244 IP(src=src, dst=dst) / ICMP() / Raw(b'X' * payload_size)
314 ICMP(),
332 ICMP(),
346 ICMP(),
361 ICMP(),
376 ICMP(),
393 ICMP(),
406 ICMP(),
[all...]
H A Dtest_mtu.py13 from scapy.layers.inet import ICMP namespace
98 p_icmp4 = ICMP(type='dest-unreach', code='fragmentation-needed',
H A Dtest_reassembly.py12 from scapy.layers.inet import IP, UDP, ICMP namespace
262 ICMP(type="echo-request", code=0, id=0x1fe6, seq=0x2407) /
269 ICMP(type="echo-request", code=0, id=0x1fe6, seq=0x2407) /
276 ICMP(type="echo-request", code=0, id=0x1fe6, seq=0x2407) /
294 ICMP(type="echo-request")),
1266 self.assert_equal(icmp[ICMPv6ParamProblem].code, 3, "ICMP code")
1285 self.assert_equal(icmp[ICMPv6ParamProblem].code, 0, "ICMP code")
1304 self.assert_equal(icmp[ICMPv6ParamProblem].code, 0, "ICMP code")
1710 ICMP(type='echo-request', id=1234) /
1740 icmp = packet[ICMP]
[all...]
H A Dtest_ip4.py9 from scapy.layers.inet import IP, UDP, TCP, ICMP, icmptypes, icmpcodes namespace
434 """ ICMP Echo Test Case """
462 """ VPP replies to ICMP Echo Request
466 - Receive ICMP Echo Request message on pg0 interface.
467 - Check outgoing ICMP Echo Reply message on pg0 interface.
476 ICMP(id=icmp_id, seq=icmp_seq) /
487 icmp = rx[ICMP]
773 # A route via IP NULL that will reply with ICMP unreachables
793 icmp = rx[ICMP]
801 # ICMP replie
[all...]
H A Dtest_srmpls.py14 from scapy.layers.inet import IP, UDP, ICMP namespace
H A Dtest_punt.py24 from scapy.layers.inet import IP, UDP, ICMP namespace
303 # expect ICMP - port unreachable for all packets
308 self.assertEqual(int(p[IP].proto), 1) # ICMP
309 self.assertEqual(int(p[ICMP].code), 3) # unreachable
328 # remove punt socket. expect ICMP - port unreachable for all packets
336 self.assertEqual(int(p[IP].proto), 1) # ICMP
337 self.assertEqual(int(p[ICMP].code), 3) # unreachable
574 # remove punt socket. expect ICMP - dest. unreachable for all packets
H A Dtest_gso.py16 from scapy.layers.inet import TCP, ICMP namespace
107 self.assertEqual(rx[ICMP].type, 3) # "dest-unreach"
108 self.assertEqual(rx[ICMP].code, 4) # "fragmentation-needed"
/vpp/src/plugins/acl/test/
H A Dtest_classify_l2_acl.py14 from scapy.layers.inet import IP, TCP, UDP, ICMP namespace
27 ICMP = 1 variable in class:TestClassifyAcl
40 proto_map = {1: 'ICMP', 58: 'ICMPv6EchoRequest', 6: 'TCP', 17: 'UDP'}
239 :param traffic_type: 1: ICMP packet, 2: IPv6 with EH, 0: otherwise.
278 if traffic_type == self.ICMP:
283 p /= ICMP(type=self.icmp4_type,
303 :param traffic_type: 1: ICMP packet, 2: IPv6 with EH, 0: otherwise.
318 if traffic_type == self.ICMP and ip_type == self.IPV6:
332 if traffic_type == self.ICMP:
H A Dtest_acl_plugin_l2l3.py36 from scapy.layers.inet import IP, UDP, ICMP, TCP namespace
234 ulp_l4 = ICMP(type=8 - 8*icmp_type_delta, code=icmp_code)
255 if p.haslayer(ICMP):
256 rule_l4_sport = p[ICMP].type
257 rule_l4_dport = p[ICMP].code
308 if packet.haslayer(ICMP):
309 l4 = ICMP
314 # So we do this and coerce the ICMP into unknown type
319 data = scapy.compat.raw(ICMP(
811 # Stateful ACL tests with stateful ICMP
[all...]
H A Dtest_acl_plugin.py10 from scapy.layers.inet import IP, TCP, UDP, ICMP namespace
27 ICMP = 1 variable in class:TestACLplugin
40 proto_map = {1: 'ICMP', 58: 'ICMPv6EchoRequest', 6: 'TCP', 17: 'UDP'}
254 :param traffic_type: 1: ICMP packet, 2: IPv6 with EH, 0: otherwise.
293 if traffic_type == self.ICMP:
298 p /= ICMP(type=self.icmp4_type,
318 :param traffic_type: 1: ICMP packet, 2: IPv6 with EH, 0: otherwise.
333 if traffic_type == self.ICMP and ip_type == self.IPV6:
347 if traffic_type == self.ICMP:
633 self.proto[self.ICMP][sel
[all...]
/vpp/src/plugins/nat/test/
H A Dtest_dslite.py11 from scapy.layers.inet import IP, TCP, UDP, ICMP namespace
174 # ICMP
178 ICMP(id=4000, type='echo-request'))
187 self.assertNotEqual(capture[ICMP].id, 4000)
189 out_id = capture[ICMP].id
193 ICMP(id=out_id, type='echo-reply'))
203 self.assertEqual(capture[ICMP].id, 4000)
H A Dtest_ipsec_nat.py7 from scapy.layers.inet import ICMP, IP, TCP, UDP namespace
81 # ICMP
84 ICMP(id=self.icmp_id_in, type='echo-request')
97 # ICMP
100 ICMP(id=self.icmp_id_out, type='echo-request'))
128 self.assert_equal(packet[ICMP].id, self.icmp_id_in,
129 "decrypted packet ICMP ID")
H A Dtest_nat66.py18 from scapy.layers.inet import IP, TCP, UDP, ICMP namespace
H A Dtest_nat.py18 from scapy.layers.inet import IP, TCP, UDP, ICMP namespace
249 # ICMP
252 ICMP(id=self.icmp_id_in, type='echo-request'))
371 # ICMP
413 # ICMP
416 ICMP(id=icmp_id, type='echo-reply'))
442 # ICMP
466 ICMP46 = ICMP
539 self.assertEqual(packet[ICMP].id, self.icmp_id_in)
587 self.assertEqual(packet[ICMP]
[all...]
/vpp/src/plugins/memif/test/
H A Dtest_memif.py5 from scapy.layers.inet import IP, ICMP namespace
226 ICMP(id=memif.if_id, type='echo-request', seq=i))
235 icmp = rx[ICMP]
277 # create ICMP echo-request from local pg to remote memif
/vpp/src/plugins/dns/test/
H A Dtest_dns.py11 from scapy.layers.inet import IP, UDP, TCP, ICMP, icmptypes, icmpcodes namespace
/vpp/src/plugins/vrrp/test/
H A Dtest_vrrp.py19 from scapy.layers.inet import IP, ICMP, icmptypes namespace
58 if p.haslayer(IP) and p.haslayer(ICMP):
59 if icmptypes[p[ICMP].type] == "echo-reply":
588 # send an ICMP echo to the VR virtual IP address
591 ICMP(seq=1, id=self.pg0.sw_if_index, type='echo-request'))
628 # send an ICMP echo to the VR virtual IP address
631 ICMP(seq=1, id=self.pg0.sw_if_index, type='echo-request'))
641 self.assertEqual(icmptypes[rx_pkts[0][ICMP].type], "echo-reply")
642 self.assertEqual(rx_pkts[0][ICMP].seq, 1)
643 self.assertEqual(rx_pkts[0][ICMP]
[all...]
/vpp/src/plugins/srv6-mobile/extra/
H A Drunner.py614 ICMP())
685 ICMP())
897 ICMP())
967 ICMP())
1038 ICMP())
1455 ICMP())
1531 ICMP())
1979 ICMP())
2056 ICMP())
2274 ICMP())
[all...]
/vpp/src/plugins/svs/test/
H A Dtest_svs.py10 from scapy.layers.inet import IP, UDP, ICMP namespace
/vpp/src/plugins/map/
H A Dmap.h218 _(ICMP, "unable to translate ICMP") \
219 _(ICMP_RELAY, "unable to relay ICMP") \

Completed in 28 milliseconds

12