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

Method __init__

scapy/layers/inet6.py:236–241  ·  view source on GitHub ↗
(self, name, default, count_from=None, length_from=None)

Source from the content-addressed store, hash-verified

234 islist = 1
235
236 def __init__(self, name, default, count_from=None, length_from=None):
237 if default is None:
238 default = []
239 StrField.__init__(self, name, default)
240 self.count_from = count_from
241 self.length_from = length_from
242
243 def i2len(self, pkt, i):
244 return 16 * len(i)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected