Skip to content
Snippets Groups Projects
Commit cb4ecf78 authored by Phil's avatar Phil
Browse files

Fixed ICMP hashret() (ticket #170)

parent ba9ace94
No related branches found
No related tags found
No related merge requests found
......@@ -598,7 +598,9 @@ class ICMP(Packet):
return p
def hashret(self):
if self.type in [0,8,13,14,15,16,17,18]:
return struct.pack("HH",self.id,self.seq)+self.payload.hashret()
return self.payload.hashret()
def answers(self, other):
if not isinstance(other,ICMP):
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment