We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce406ff commit 42bb438Copy full SHA for 42bb438
1 file changed
scapy/layers/inet6.py
@@ -2258,6 +2258,10 @@ def hashret(self):
2258
return bytes_encode(self.tgt) + self.payload.hashret()
2259
2260
def answers(self, other):
2261
+ if not isinstance(self.underlayer, IPv6):
2262
+ return False
2263
+ if self.underlayer.hlim != 255:
2264
2265
return isinstance(other, ICMPv6ND_NS) and self.tgt == other.tgt
2266
2267
# associated possible options : target link-layer option, Redirected header
0 commit comments