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

Method getfield

scapy/fields.py:640–647  ·  view source on GitHub ↗
(self,
                 pkt,  # type: Packet
                 s,  # type: bytes
                 )

Source from the content-addressed store, hash-verified

638 return -flen % self._align
639
640 def getfield(self,
641 pkt, # type: Packet
642 s, # type: bytes
643 ):
644 # type: (...) -> Tuple[bytes, Any]
645 remain, val = self.fld.getfield(pkt, s)
646 padlen = self.padlen(len(s) - len(remain), pkt)
647 return remain[padlen:], val
648
649 def addfield(self,
650 pkt, # type: Packet

Callers

nothing calls this directly

Calls 2

padlenMethod · 0.95
getfieldMethod · 0.45

Tested by

no test coverage detected