MCPcopy Index your code
hub / github.com/secdev/scapy / __eq__

Method __eq__

scapy/packet.py:1247–1256  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

1245 raise TypeError((self, other))
1246
1247 def __eq__(self, other):
1248 # type: (Any) -> bool
1249 if not isinstance(other, self.__class__):
1250 return False
1251 for f in self.fields_desc:
1252 if f not in other.fields_desc:
1253 return False
1254 if self.getfieldval(f.name) != other.getfieldval(f.name):
1255 return False
1256 return self.payload == other.payload
1257
1258 def __ne__(self, other):
1259 # type: (Any) -> bool

Callers 1

__ne__Method · 0.95

Calls 1

getfieldvalMethod · 0.95

Tested by

no test coverage detected