MCPcopy Create free account
hub / github.com/secdev/scapy / __init__

Method __init__

scapy/layers/inet6.py:1812–1814  ·  view source on GitHub ↗
(self, name, default, strip_zeros=False, **kwargs)

Source from the content-addressed store, hash-verified

1810 __slots__ = ["strip_zeros"]
1811
1812 def __init__(self, name, default, strip_zeros=False, **kwargs):
1813 super().__init__(name, default, **kwargs)
1814 self.strip_zeros = strip_zeros
1815
1816 def i2len(self, pkt, x):
1817 return len(self.i2m(pkt, x))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected