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

Method __init__

scapy/layers/inet6.py:2006–2008  ·  view source on GitHub ↗
(self, name, default)

Source from the content-addressed store, hash-verified

2004 __slots__ = ["length_from"]
2005
2006 def __init__(self, name, default):
2007 IP6Field.__init__(self, name, default)
2008 self.length_from = lambda pkt: 8 * (pkt.len - 1)
2009
2010 def addfield(self, pkt, s, val):
2011 return s + self.i2m(pkt, val)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected