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

Method getfield

scapy/fields.py:417–422  ·  view source on GitHub ↗
(self, pkt, s)

Source from the content-addressed store, hash-verified

415 return self.fld.i2h(pkt, val)
416
417 def getfield(self, pkt, s):
418 # type: (Packet, bytes) -> Tuple[bytes, Any]
419 if self._evalcond(pkt):
420 return self.fld.getfield(pkt, s)
421 else:
422 return s, None
423
424 def addfield(self, pkt, s, val):
425 # type: (Packet, bytes, Any) -> bytes

Callers

nothing calls this directly

Calls 2

_evalcondMethod · 0.95
getfieldMethod · 0.45

Tested by

no test coverage detected