Home
last modified time | relevance | path

Searched refs:src (Results 1 – 17 of 17) 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 …]
Dping6_test.py107 src = packet.getlayer(scapy.IP).src
109 scapy.IP(src=self.INTERMEDIATE_IPV4, dst=src) /
113 src = packet.getlayer(scapy.IPv6).src
115 scapy.IPv6(src=self.INTERMEDIATE_IPV6, dst=src) /
120 src = packet.getlayer(scapy.IPv6).src
123 scapy.IPv6(src=self.INTERMEDIATE_IPV6, dst=src) /
163 ipv6.dst = ipv6.src
164 for src in [self._routeraddr]:
165 ipv6.src = src
180 src = packet.src
[all …]
Dpolicy_crash_test.py106 src = ip6loopback
121 pkt1 = (ver6 + tclass + flowlbl + pkt1_plen + nexthdr + hoplimit + src + dst
124 pkt2 = (ver6 + tclass + flowlbl + pkt2_plen + nexthdr + hoplimit + src + dst
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
334 def BpfRawInsn(code, dst, src, off, imm): argument
335 ret = BpfInsn((code, (src << 4 | dst), off, imm))
Dtun_twister.py158 packet.src, packet.dst = packet.dst, packet.src
210 packet.src, packet.dst = packet.dst, packet.src
Dnamespace.py79 def Mount(src, tgt, fs, flags=MS_NODEV|MS_NOEXEC|MS_NOSUID|MS_RELATIME): argument
80 ret = libc.mount(src, tgt, fs, flags, None)
84 % (os.strerror(errno), src, tgt, fs, flags))
Dneighbour_test.py166 src = self.MyLinkLocalAddress(self.netid)
172 src = self.MyAddress(6, self.netid)
174 scapy.IPv6(src=src, dst=dst) /
182 src = self._MyIPv4Address(self.netid)
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) /
Dxfrm.py258 def SrcDstSelector(src, dst): argument
260 srcver = csocket.AddressVersion(src)
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
565 sa = XfrmUsersaInfo((selector, xfrm_id, PaddedAddress(src), NO_LIFETIME_CFG,
645 def CreateTunnel(self, direction, selector, src, dst, spi, encryption, argument
693 self.AddSaInfo(src, dst, spi, XFRM_MODE_TUNNEL, 0, encryption, auth_trunc,
703 tmpl = UserTemplate(outer_family, tmpl_spi, 0, (src, dst))
Dpf_key.py239 def AddSa(self, src, dst, spi, satype, mode, reqid, encryption, argument
247 self.MakeSadbExtAddr(SADB_EXT_ADDRESS_SRC, src),
256 def DelSa(self, src, dst, spi, satype): argument
262 self.MakeSadbExtAddr(SADB_EXT_ADDRESS_SRC, src),
Dsock_diag.py331 return SockDiag.GetRawAddress(diag_msg.family, diag_msg.id.src)
363 src, sport = s.getsockname()[:2]
372 src = SockDiag.PaddedAddress(src)
374 sock_id = InetDiagSockId((sport, dport, src, dst, iface, "\x00" * 8))
Dxfrm_algorithm_test.py107 src=xfrm_test.TEST_ADDR1,
253 src=local_addr,
266 src=remote_addr,
279 src=local_addr,
292 src=remote_addr,
Dsock_diag_test.py137 src, sport = s.getsockname()[0:2]
138 self.assertEqual(diag_msg.id.src, self.sock_diag.PaddedAddress(src))
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
551 child.id.src)
961 src = self.MySocketAddress(version, netid)
962 s.bind((src, 0))
966 self.assertEqual((src, 0), s.getsockname()[:2])
977 src = self.MySocketAddress(version, netid)
978 port = self.BindToRandomPort(s, src)
[all …]
Dxfrm_test.py303 incoming = (scapy.IP(src=remoteaddr, dst=myaddr) /
320 data, src = twisted_socket.recvfrom(4096)
322 self.assertEqual((remoteaddr, srcport), src)
327 scapy.IP(src=remoteaddr, dst=myaddr) / scapy.UDP(
508 input_pkt = (IpType(src=remote_addr, dst=local_addr) /
572 input_pkt = (IpType(src=remote_addr, dst=local_addr) /
Dnet_test.py470 (_, src, dst, state, mem,
472 out.append([src, dst, state, mem, uid, refcnt, extra])
Dmultinetwork_base.py246 ra = (scapy.Ether(src=macaddr, dst="33:33:00:00:00:01") /
247 scapy.IPv6(src=lladdr, hlim=255) /
537 packet = scapy.Ether(src=routermac, dst=mymac) / ip_packet
/kernel/tests/net/test/rootfs/
Dbullseye.sh31 deb-src http://ftp.debian.org/debian bullseye main
66 mkdir -p /usr/src/$iptables
68 cd /usr/src/$iptables
85 cd /usr/src
92 cd /usr/src/$iptables
103 cd /usr/src
/kernel/configs/tools/
Dfreeze.py56 src = os.path.join(self.configs_dir, version)
58 shutil.move(src, dst)