Searched refs:IP (Results 1 - 25 of 98) sorted by relevance

1234

/vpp/extras/vom/vom/
H A Dqos_types.cpp24 const source_t source_t::IP(3, "IP");
H A Dqos_types.hpp39 const static source_t IP; member in class:VOM::QoS::source_t
H A Dqos_types_api.cpp34 return source_t::IP;
/vpp/test/
H A Dtest_trace_filter.py11 from scapy.layers.inet import IP, UDP namespace
111 IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4) /
115 IP() /
119 IP(src='192.168.4.167') /
130 IP(chksum=0) /
134 IP(chksum=0) /
138 IP(src='0.0.0.0', chksum=0))
144 user[IP].src = '255.255.255.255'
151 user[IP].src = '192.168.4.167'
H A Dtest_gso.py14 from scapy.layers.inet6 import IPv6, Ether, IP, UDP, ICMPv6PacketTooBig namespace
95 IP(src=self.pg0.remote_ip4, dst=self.pg1.remote_ip4,
105 self.assertEqual(rx[IP].src, self.pg0.local_ip4)
106 self.assertEqual(rx[IP].dst, self.pg0.remote_ip4)
114 IP(src=self.pg2.remote_ip4, dst=self.pg0.remote_ip4,
124 self.assertEqual(rx[IP].src, self.pg2.remote_ip4)
125 self.assertEqual(rx[IP].dst, self.pg0.remote_ip4)
126 payload_len = rx[IP].len - 20 - 20
153 IP(src=self.pg2.remote_ip4, dst=self.pg3.remote_ip4,
163 self.assertEqual(rx[IP]
[all...]
H A Dtemplate_bd.py8 from scapy.layers.inet import IP, UDP namespace
21 IP(src='1.2.3.4', dst='4.3.2.1') /
29 IP(src='4.3.2.1', dst='1.2.3.4') /
59 """ Verify the Ether, IP, UDP, payload are equal in both
64 self.assertEqual(pkt1[IP].src, pkt2[IP].src)
65 self.assertEqual(pkt1[IP].dst, pkt2[IP].dst)
H A Dtest_vxlan_gbp.py11 from scapy.layers.inet import IP, UDP namespace
25 IP(src='1.2.3.4', dst='4.3.2.1') /
33 IP(src='4.3.2.1', dst='1.2.3.4') /
40 its UDP, IP and Ethernet fields
43 IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4) /
72 # Verify VXLAN GBP tunnel source IP is VPP_IP and destination IP is
74 self.assertEqual(pkt[IP].src, self.pg0.local_ip4)
77 self.assertEqual(pkt[IP].dst, self.pg0.remote_ip4)
79 self.assertEqual(pkt[IP]
[all...]
H A Dtest_udp.py11 from scapy.layers.inet import IP, UDP namespace
69 self.assertEqual(rx[IP].src, encap_obj.src_ip_s)
70 self.assertEqual(rx[IP].dst, encap_obj.dst_ip_s)
81 self.assertEqual(rx[IP].src, tx[IP].src)
82 self.assertEqual(rx[IP].dst, tx[IP].dst)
84 self.assertEqual(rx[IP].ttl, ttl)
86 self.assertEqual(rx[IP].ttl, tx[IP]
[all...]
H A Dtest_ip4_irb.py31 from scapy.layers.inet import IP, UDP namespace
117 IP(src=src_ip_if.remote_ip4,
138 IP(src=host.ip4,
158 ip = packet[IP]
159 udp = packet[IP][UDP]
160 payload_info = self.payload_to_info(packet[IP][UDP][Raw])
176 # IP: src, dst
179 self.assertEqual(ip.dst, saved_packet[IP].dst)
194 ip = packet[IP]
195 udp = packet[IP][UD
[all...]
H A Dtest_qos.py14 from scapy.layers.inet import IP, UDP namespace
66 """ QoS Mark/Record/Store IP """
138 IP(src=self.pg0.remote_ip4, dst=self.pg1.remote_ip4, tos=1) /
153 self.assertEqual(p[IP].tos, 1)
159 # Enable QoS recording on IP input for pg0
172 self.assertEqual(p[IP].tos, 254)
180 p_v4[IP].tos = 127
183 self.assertEqual(p[IP].tos, 128)
189 p_v4[IP].tos = 254
192 self.assertEqual(p[IP]
[all...]
H A Dtest_sixrd.py5 from scapy.layers.inet import IP, UDP, Ether namespace
63 if IP not in rx:
68 self.assertEqual(rx[IP].src, expected[IP].src)
69 self.assertEqual(rx[IP].dst, expected[IP].dst)
70 self.assertEqual(rx[IP].proto, expected[IP].proto)
77 if IP in rx:
105 p_reply = (IP(sr
[all...]
H A Dutil.py14 from scapy.layers.inet import IP namespace
241 layer_3 = [IP(src=src_if.remote_ip4, dst=dst_if.remote_ip4),
285 :note: IP options are not supported
290 if len(packet[IP].options) > 0:
295 pre_ip_len = len(packet) - len(packet[IP])
296 ip_header_len = packet[IP].ihl * 4
302 ihl = packet[IP].ihl
303 otl = len(packet[IP])
305 fo = packet[IP].frag
308 p[IP]
[all...]
/vpp/src/plugins/acl/test/
H A Dtest_acl_plugin.py10 from scapy.layers.inet import IP, TCP, UDP, ICMP namespace
26 IP = 0 variable in class:TestACLplugin
29 # IP version
274 pkt_info.proto = random.choice(self.proto[self.IP])
289 p /= IP(src=src_host.ip4, dst=dst_host.ip4,
292 p /= IP(src=src_host.ip4, dst=dst_host.ip4)
361 ip_version = IPv6 if payload_info.ip == 1 else IP
562 0, self.proto[self.IP][self.UDP]))
564 0, self.proto[self.IP][self.TCP]))
573 self.run_verify_test(self.IP, sel
[all...]
/vpp/src/plugins/map/test/
H A Dtest_map.py14 from scapy.layers.inet import IP, UDP, ICMP, TCP namespace
68 self.assertEqual(rx[IP].src, tx[IP].src)
185 IP(src=self.pg0.remote_ip4, dst=self.pg0.remote_ip4) /
198 IP(src=self.pg0.remote_ip4, dst='192.168.1.1') /
208 IP(id=1, src=self.pg0.remote_ip4, dst='192.168.1.1') /
239 IP(dst=self.pg0.remote_ip4, src='192.168.1.1') /
252 self.assertEqual(rx[IP].src, p[IP].src)
253 self.assertEqual(rx[IP]
[all...]
H A Dtest_map_br.py14 from scapy.layers.inet import IP, UDP, ICMP, TCP, IPerror, UDPerror namespace
142 self.assertEqual(pkt[IP].src, self.ipv4_map_address)
143 self.assertEqual(pkt[IP].dst, self.ipv4_internet_address)
169 ip = IP(src=self.pg0.remote_ip4,
199 ip = IP(src=self.pg0.remote_ip4,
242 self.assertEqual(rx_pkt[IP].proto, IP(proto="udp").proto)
243 self.assertEqual(rx_pkt[IP].tos, 0) # IPv6 TC passed to v4 ToS
244 df_bit = IP(flags="DF").flags
245 self.assertNotEqual(rx_pkt[IP]
[all...]
/vpp/src/plugins/nat/test/
H A Dtest_dslite.py11 from scapy.layers.inet import IP, TCP, UDP, ICMP namespace
105 IP(dst=self.pg0.remote_ip4, src='192.168.1.1') /
113 self.assertEqual(capture[IP].src, self.nat_addr)
114 self.assertEqual(capture[IP].dst, self.pg0.remote_ip4)
125 IP(dst=self.nat_addr, src=self.pg0.remote_ip4) /
134 self.assertEqual(capture[IP].src, self.pg0.remote_ip4)
135 self.assertEqual(capture[IP].dst, '192.168.1.1')
143 IP(dst=self.pg0.remote_ip4, src='192.168.1.1') /
151 self.assertEqual(capture[IP].src, self.nat_addr)
152 self.assertEqual(capture[IP]
[all...]
H A Dtest_ipsec_nat.py7 from scapy.layers.inet import ICMP, IP, TCP, UDP namespace
75 IP(src=src_ip, dst=dst_ip) /
79 IP(src=src_ip, dst=dst_ip) /
83 IP(src=src_ip, dst=dst_ip) /
91 sa.encrypt(IP(src=src_ip, dst=dst_ip) /
95 sa.encrypt(IP(src=src_ip, dst=dst_ip) /
99 sa.encrypt(IP(src=src_ip, dst=dst_ip) /
107 self.assert_equal(packet[IP].src, self.tun_if.remote_ip4,
109 self.assert_equal(packet[IP].dst, self.pg1.remote_ip4,
144 self.assertIn(ESP, packet[IP])
[all...]
/vpp/src/plugins/dns/test/
H A Dtest_dns.py11 from scapy.layers.inet import IP, UDP, TCP, ICMP, icmptypes, icmpcodes namespace
47 IP(src=src_if.remote_ip4) /
52 IP(src=src_if.remote_ip4) /
/vpp/src/plugins/nat/extras/
H A Dnat_100ks.py6 base_pkt = Ether()/IP(dst="2.2.0.1")/UDP(dport=12)
17 vm.write(fv_name="tuple.ip", pkt_offset="IP.src")
H A Dnat_10Ms.py6 base_pkt = Ether()/IP(dst="2.2.0.1")/UDP(dport=12)
17 vm.write(fv_name="tuple.ip", pkt_offset="IP.src")
H A Dnat_10ks.py6 base_pkt = Ether()/IP(dst="2.2.0.1")/UDP(dport=12)
17 vm.write(fv_name="tuple.ip", pkt_offset="IP.src")
H A Dnat_1Ms.py6 base_pkt = Ether()/IP(dst="2.2.0.1")/UDP(dport=12)
17 vm.write(fv_name="tuple.ip", pkt_offset="IP.src")
H A Dnat_out2in_100ks.py6 base_pkt = Ether()/IP(src="2.2.0.1")/UDP(sport=12)
17 vm.write(fv_name="tuple.ip", pkt_offset="IP.dst")
H A Dnat_out2in_10Ms.py6 base_pkt = Ether()/IP(src="2.2.0.1")/UDP(sport=12)
17 vm.write(fv_name="tuple.ip", pkt_offset="IP.dst")
H A Dnat_out2in_10ks.py6 base_pkt = Ether()/IP(src="2.2.0.1")/UDP(sport=12)
17 vm.write(fv_name="tuple.ip", pkt_offset="IP.dst")

Completed in 11 milliseconds

1234