Lines Matching refs:ipv6
148 def IPv6Packet(self, ipv6): argument
149 icmpv6 = ipv6.getlayer(scapy.ICMPv6EchoRequest)
152 if (ipv6.nh != IPPROTO_ICMPV6 or
159 if not self.ChecksumValid(ipv6):
162 if ipv6.dst.startswith("ff02::"):
163 ipv6.dst = ipv6.src
165 ipv6.src = src
167 self.SendPacket(ipv6)
168 elif ipv6.hlim < self.MIN_TTL:
169 self.SendTimeExceeded(6, ipv6)
170 elif ipv6.plen > self.LINK_MTU:
171 self.SendPacketTooBig(ipv6)
174 if ipv6.dst.startswith("fe80:") and ipv6.dst != self._routeraddr:
176 self.SwapAddresses(ipv6)
177 self.SendPacket(ipv6)