Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 15 of 15) sorted by relevance

/kernel/tests/net/test/
Dpackets.py63 ip(src=srcaddr, dst=dstaddr) /
68 packet = (scapy.IP(src=srcaddr, dst=dstaddr, ttl=lifetime, tos=0x83) /
72 packet = (scapy.IPv6(src=srcaddr, dst=dstaddr,
85 ip(src=srcaddr, dst=dstaddr) /
95 ip(src=srcaddr, dst=dstaddr) /
105 ip(src=srcaddr, dst=dstaddr) /
118 ip(src=srcaddr, dst=dstaddr) /
130 ip(src=srcaddr, dst=dstaddr) /
137 ip = scapy.IP(src=srcaddr, dst=dstaddr, proto=net_test.IPPROTO_GRE)
139 ip = scapy.IPv6(src=srcaddr, dst=dstaddr, nh=net_test.IPPROTO_GRE)
[all …]
Dbpf.py292 def BpfMov64Reg(dst, src): argument
294 dst_src = src << 4 | dst
299 def BpfLdxMem(size, dst, src, off): argument
301 dst_src = src << 4 | dst
306 def BpfStxMem(size, dst, src, off): argument
308 dst_src = src << 4 | dst
313 def BpfStMem(size, dst, off, imm): argument
315 dst_src = dst
320 def BpfAlu64Imm(op, dst, imm): argument
322 dst_src = dst
[all …]
Dxfrm.py258 def SrcDstSelector(src, dst): argument
261 dstver = csocket.AddressVersion(dst)
264 (src, dst))
267 return XfrmSelector(saddr=PaddedAddress(src), daddr=PaddedAddress(dst),
493 def AddSaInfo(self, src, dst, spi, mode, reqid, encryption, auth_trunc, aead, argument
516 xfrm_id = XfrmId((PaddedAddress(dst), spi, proto))
517 family = AF_INET6 if ":" in dst else AF_INET
572 def DeleteSaInfo(self, dst, spi, proto, mark=None, xfrm_if_id=None): argument
583 family = AF_INET6 if ":" in dst else AF_INET
584 usersa_id = XfrmUsersaId((PaddedAddress(dst), spi, family, proto))
[all …]
Dpolicy_crash_test.py107 dst = ip6loopback
121 pkt1 = (ver6 + tclass + flowlbl + pkt1_plen + nexthdr + hoplimit + src + dst
124 pkt2 = (ver6 + tclass + flowlbl + pkt2_plen + nexthdr + hoplimit + src + dst
Dtun_twister.py158 packet.src, packet.dst = packet.dst, packet.src
184 return int(eth_pkt.dst.split(":")[0], 16) & 0x1
210 packet.src, packet.dst = packet.dst, packet.src
Dping6_test.py109 scapy.IP(src=self.INTERMEDIATE_IPV4, dst=src) /
115 scapy.IPv6(src=self.INTERMEDIATE_IPV6, dst=src) /
123 scapy.IPv6(src=self.INTERMEDIATE_IPV6, dst=src) /
162 if ipv6.dst.startswith("ff02::"):
163 ipv6.dst = ipv6.src
174 if ipv6.dst.startswith("fe80:") and ipv6.dst != self._routeraddr:
181 packet.src = packet.dst
182 packet.dst = src
185 packet = scapy.Ether(src=self._routermac, dst=self._mymac) / packet
395 return (scapy.IP(src="192.0.2.1", dst="127.0.0.1") /
[all …]
Dneighbour_test.py167 dst = addr
171 dst = "ff02::1:ff%02x:%02x%02x" % last3bytes
174 scapy.IPv6(src=src, dst=dst) /
183 dst = addr
186 expected = scapy.ARP(psrc=src, pdst=dst, hwsrc=llsrc, op=1)
205 scapy.Ether(src=mac, dst=self.MyMacAddress(self.netid)) /
206 scapy.IPv6(src=srcaddr, dst=dstaddr) /
Dsock_diag.py336 return SockDiag.GetRawAddress(diag_msg.family, diag_msg.id.dst)
365 dst, dport = s.getpeername()[:2]
369 dst = "::" if family == AF_INET6 else "0.0.0.0"
373 dst = SockDiag.PaddedAddress(dst)
374 sock_id = InetDiagSockId((sport, dport, src, dst, iface, "\x00" * 8))
Dpf_key.py239 def AddSa(self, src, dst, spi, satype, mode, reqid, encryption, argument
248 self.MakeSadbExtAddr(SADB_EXT_ADDRESS_DST, dst),
256 def DelSa(self, src, dst, spi, satype): argument
263 self.MakeSadbExtAddr(SADB_EXT_ADDRESS_DST, dst),
Dxfrm_algorithm_test.py108 dst=xfrm_test.TEST_ADDR2,
254 dst=remote_addr,
267 dst=local_addr,
280 dst=remote_addr,
293 dst=local_addr,
Dsock_diag_test.py142 dst, dport = s.getpeername()[0:2]
143 self.assertEqual(diag_msg.id.dst, self.sock_diag.PaddedAddress(dst))
250 req.id.src, req.id.dst = req.id.dst, req.id.src
428 req.id.src, req.id.dst = req.id.dst, req.id.src
549 child.id.dst)
947 dst = self.GetRemoteSocketAddress(version)
955 s.connect((dst, 53))
963 s.connect((dst, 53))
971 s.connect((dst, 53))
Dxfrm_test.py303 incoming = (scapy.IP(src=remoteaddr, dst=myaddr) /
327 scapy.IP(src=remoteaddr, dst=myaddr) / scapy.UDP(
508 input_pkt = (IpType(src=remote_addr, dst=local_addr) /
527 self.assertEqual(remote_addr, output_pkt.dst)
572 input_pkt = (IpType(src=remote_addr, dst=local_addr) /
591 self.assertEqual(remote_addr, output_pkt.dst)
Dmultinetwork_base.py246 ra = (scapy.Ether(src=macaddr, dst="33:33:00:00:00:01") /
537 packet = scapy.Ether(src=routermac, dst=mymac) / ip_packet
559 if include_multicast or not int(ether.dst.split(":")[0], 16) & 0x1:
694 if ipv6 and ipv6.dst.startswith("ff"):
Dnet_test.py470 (_, src, dst, state, mem,
472 out.append([src, dst, state, mem, uid, refcnt, extra])
/kernel/configs/tools/
Dfreeze.py57 dst = os.path.join(self.new_release_dir, version)
58 shutil.move(src, dst)
59 for file_name in os.listdir(dst):
60 abs_path = os.path.join(dst, file_name)