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

Method __init__

scapy/arch/linux/__init__.py:418–426  ·  view source on GitHub ↗
(self, iface_name, peer_name)

Source from the content-addressed store, hash-verified

416 """
417
418 def __init__(self, iface_name, peer_name):
419 # type: (str, str) -> None
420 if not LINUX:
421 # ToDo: do we need a kernel version check here?
422 raise ScapyInvalidPlatformException(
423 'Virtual Ethernet interface pair only available on Linux'
424 )
425
426 self.ifaces = [iface_name, peer_name]
427
428 def iface(self):
429 # type: () -> str

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected