Home | History | Annotate | Download | only in test

Lines Matching refs:IP

90     layers = ["IP", "ICMP", scapy.ICMPv6EchoRequest]
107 src = packet.getlayer(scapy.IP).src
109 scapy.IP(src=self.INTERMEDIATE_IPV4, dst=src) /
127 def IPv4Packet(self, ip):
128 icmp = ip.getlayer(scapy.ICMP)
131 if (ip.proto != IPPROTO_ICMP or
137 if not self.ChecksumValid(ip):
140 if ip.ttl < self.MIN_TTL:
141 self.SendTimeExceeded(4, ip)
145 self.SwapAddresses(ip)
146 self.SendPacket(ip)
303 # we don't have the IP addresses so we can't construct the pseudoheader.
379 return (scapy.IP(src="192.0.2.1", dst="127.0.0.1") /
381 scapy.IP(src="127.0.0.1", dst="127.0.0.1") /
850 # IP[V6]_RECVERR in 3.10 appears to return incorrect data for the port.