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

Method _evalcond

scapy/fields.py:392–394  ·  view source on GitHub ↗
(self, pkt)

Source from the content-addressed store, hash-verified

390 self.cond = cond
391
392 def _evalcond(self, pkt):
393 # type: (Packet) -> bool
394 return bool(self.cond(pkt))
395
396 def any2i(self, pkt, x):
397 # type: (Optional[Packet], Any) -> Any

Callers 7

i2hMethod · 0.95
getfieldMethod · 0.95
addfieldMethod · 0.95
__repr__Method · 0.80
do_build_psMethod · 0.80
_show_or_dumpMethod · 0.80
fuzzFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected