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

Function _iface_changer

scapy/config.py:914–926  ·  view source on GitHub ↗

Resolves the interface in conf.iface

(attr, val, old)

Source from the content-addressed store, hash-verified

912
913
914def _iface_changer(attr, val, old):
915 # type: (str, Any, Any) -> 'scapy.interfaces.NetworkInterface'
916 """Resolves the interface in conf.iface"""
917 if isinstance(val, str):
918 from scapy.interfaces import resolve_iface
919 iface = resolve_iface(val)
920 if old and iface.dummy:
921 warning(
922 "This interface is not specified in any provider ! "
923 "See conf.ifaces output"
924 )
925 return iface
926 return val
927
928
929def _reset_tls_nss_keys(attr, val, old):

Callers

nothing calls this directly

Calls 2

resolve_ifaceFunction · 0.90
warningFunction · 0.90

Tested by

no test coverage detected