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

Method __init__

scapy/layers/l2.py:230–233  ·  view source on GitHub ↗
(self, name, getif=None)

Source from the content-addressed store, hash-verified

228 __slots__ = ["getif"]
229
230 def __init__(self, name, getif=None):
231 # type: (str, Optional[Any]) -> None
232 MACField.__init__(self, name, None)
233 self.getif = (lambda pkt: pkt.route()[0]) if getif is None else getif
234
235 def i2h(self, pkt, x):
236 # type: (Optional[Packet], Optional[str]) -> str

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
routeMethod · 0.45

Tested by

no test coverage detected