Searched refs:scapy (Results 1 – 5 of 5) sorted by relevance
/system/extras/tests/net_test/ |
D | multinetwork_test.py | 25 from scapy import all as scapy unknown 39 UDP_PAYLOAD = str(scapy.DNS(rd=1, 41 qd=scapy.DNSQR(qname="wWW.GoOGle.CoM", 78 return {4: scapy.IP, 6: scapy.IPv6}[version] 82 if isinstance(packet, scapy.IPv6): 84 elif isinstance(packet, scapy.IP): 97 scapy.UDP(sport=sport, dport=53) / UDP_PAYLOAD) 102 packet = (scapy.IP(src=srcaddr, dst=dstaddr, ttl=39, tos=0x83) / 103 scapy.UDP(sport=sport, dport=53) / 106 packet = (scapy.IPv6(src=srcaddr, dst=dstaddr, [all …]
|
D | ping6_test.py | 29 from scapy import all as scapy unknown 80 layers = ["IP", "ICMP", scapy.ICMPv6EchoRequest] 97 src = packet.getlayer(scapy.IP).src 99 scapy.IP(src=self.INTERMEDIATE_IPV4, dst=src) / 100 scapy.ICMP(type=11, code=0) / 103 src = packet.getlayer(scapy.IPv6).src 105 scapy.IPv6(src=self.INTERMEDIATE_IPV6, dst=src) / 106 scapy.ICMPv6TimeExceeded(code=0) / 110 icmp = ip.getlayer(scapy.ICMP) 131 icmpv6 = ipv6.getlayer(scapy.ICMPv6EchoRequest) [all …]
|
D | net_test.py | 23 from scapy import all as scapy unknown 146 ifr = fcntl.ioctl(s, scapy.SIOCGIFINDEX, ifr) 156 ifr = struct.pack("16sH6s", ifname, scapy.ARPHDR_ETHER, hwaddr) 163 ifr = fcntl.ioctl(s, scapy.SIOCGIFFLAGS, ifr) 166 flags |= scapy.IFF_UP 168 flags &= ~scapy.IFF_UP 170 ifr = fcntl.ioctl(s, scapy.SIOCSIFFLAGS, ifr)
|
D | multinetwork_base.py | 28 from scapy import all as scapy unknown 239 ra = (scapy.Ether(src=macaddr, dst="33:33:00:00:00:01") / 240 scapy.IPv6(src=lladdr, hlim=255) / 241 scapy.ICMPv6ND_RA(retranstimer=retranstimer, 243 scapy.ICMPv6NDOptSrcLLAddr(lladdr=macaddr) / 244 scapy.ICMPv6NDOptPrefixInfo(prefix=cls.IPv6Prefix(netid), 458 packet = scapy.Ether(src=routermac, dst=mymac) / ip_packet 468 ether = scapy.Ether(packet)
|
D | srcaddr_selection_test.py | 24 from scapy import all as scapy unknown 263 dad_defense = (scapy.Ether(src=conflict_macaddr, dst="33:33:33:00:00:01") / 264 scapy.IPv6(src=self.test_ip, dst="ff02::1") / 265 scapy.ICMPv6ND_NA(tgt=self.test_ip, R=0, S=0, O=1) / 266 scapy.ICMPv6NDOptDstLLAddr(lladdr=conflict_macaddr))
|