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

Method __init__

scapy/fields.py:3521–3538  ·  view source on GitHub ↗
(
            self,
            name,  # type: str
            default,  # type: Tuple[str, int]
            wordbytes=1,  # type: int
            length_from=None  # type: Optional[Callable[[Packet], int]]
    )

Source from the content-addressed store, hash-verified

3519
3520class IP6PrefixField(_IPPrefixFieldBase):
3521 def __init__(
3522 self,
3523 name, # type: str
3524 default, # type: Tuple[str, int]
3525 wordbytes=1, # type: int
3526 length_from=None # type: Optional[Callable[[Packet], int]]
3527 ):
3528 # type: (...) -> None
3529 _IPPrefixFieldBase.__init__(
3530 self,
3531 name,
3532 default,
3533 wordbytes,
3534 16,
3535 lambda a: inet_pton(socket.AF_INET6, a),
3536 lambda n: inet_ntop(socket.AF_INET6, n),
3537 length_from
3538 )
3539
3540
3541class UTCTimeField(Field[float, int]):

Callers

nothing calls this directly

Calls 3

inet_ptonFunction · 0.90
inet_ntopFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected