MCPcopy Create free account
hub / github.com/secdev/scapy / hashret

Method hashret

scapy/layers/inet.py:781–785  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

779 return p
780
781 def hashret(self):
782 if conf.checkIPsrc:
783 return struct.pack("H", self.sport ^ self.dport) + self.payload.hashret() # noqa: E501
784 else:
785 return self.payload.hashret()
786
787 def answers(self, other):
788 if not isinstance(other, TCP):

Callers

nothing calls this directly

Calls 1

hashretMethod · 0.45

Tested by

no test coverage detected