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

Method addfield

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

Source from the content-addressed store, hash-verified

2474 return super(BitLenField, self).getfield(pkt, s)
2475
2476 def addfield(self, # type: ignore
2477 pkt, # type: Packet
2478 s, # type: Union[Tuple[bytes, int, int], bytes]
2479 val # type: int
2480 ):
2481 # type: (...) -> Union[Tuple[bytes, int, int], bytes]
2482 self.size = self.length_from(pkt)
2483 return super(BitLenField, self).addfield(pkt, s, val)
2484
2485
2486class BitFieldLenField(BitField):

Callers

nothing calls this directly

Calls 2

length_fromMethod · 0.45
addfieldMethod · 0.45

Tested by

no test coverage detected