/kernel/tests/net/test/ |
D | packets.py | 63 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 …]
|
D | ping6_test.py | 107 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 …]
|
D | policy_crash_test.py | 106 src = ip6loopback 121 pkt1 = (ver6 + tclass + flowlbl + pkt1_plen + nexthdr + hoplimit + src + dst 124 pkt2 = (ver6 + tclass + flowlbl + pkt2_plen + nexthdr + hoplimit + src + dst
|
D | bpf.py | 292 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))
|
D | tun_twister.py | 158 packet.src, packet.dst = packet.dst, packet.src 210 packet.src, packet.dst = packet.dst, packet.src
|
D | namespace.py | 79 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))
|
D | neighbour_test.py | 166 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) /
|
D | xfrm.py | 258 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))
|
D | pf_key.py | 239 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),
|
D | sock_diag.py | 331 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))
|
D | xfrm_algorithm_test.py | 107 src=xfrm_test.TEST_ADDR1, 253 src=local_addr, 266 src=remote_addr, 279 src=local_addr, 292 src=remote_addr,
|
D | sock_diag_test.py | 137 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 …]
|
D | xfrm_test.py | 303 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) /
|
D | net_test.py | 470 (_, src, dst, state, mem, 472 out.append([src, dst, state, mem, uid, refcnt, extra])
|
D | multinetwork_base.py | 246 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/ |
D | bullseye.sh | 31 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/ |
D | freeze.py | 56 src = os.path.join(self.configs_dir, version) 58 shutil.move(src, dst)
|