Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scapy/layers/inet6.py
Original file line number Diff line number Diff line change
Expand Up @@ -2258,6 +2258,10 @@ def hashret(self):
return bytes_encode(self.tgt) + self.payload.hashret()

def answers(self, other):
if not isinstance(self.underlayer, IPv6):
return False
if self.underlayer.hlim != 255:
return False
return isinstance(other, ICMPv6ND_NS) and self.tgt == other.tgt

# associated possible options : target link-layer option, Redirected header
Expand Down