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

Method getfield

scapy/fields.py:2468–2474  ·  view source on GitHub ↗
(self,  # type: ignore
                 pkt,  # type: Packet
                 s,  # type: Union[Tuple[bytes, int], bytes]
                 )

Source from the content-addressed store, hash-verified

2466 super(BitLenField, self).__init__(name, default, 0)
2467
2468 def getfield(self, # type: ignore
2469 pkt, # type: Packet
2470 s, # type: Union[Tuple[bytes, int], bytes]
2471 ):
2472 # type: (...) -> Union[Tuple[Tuple[bytes, int], int], Tuple[bytes, int]] # noqa: E501
2473 self.size = self.length_from(pkt)
2474 return super(BitLenField, self).getfield(pkt, s)
2475
2476 def addfield(self, # type: ignore
2477 pkt, # type: Packet

Callers

nothing calls this directly

Calls 2

length_fromMethod · 0.45
getfieldMethod · 0.45

Tested by

no test coverage detected