Resolves the interface in conf.iface
(attr, val, old)
| 912 | |
| 913 | |
| 914 | def _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 | |
| 929 | def _reset_tls_nss_keys(attr, val, old): |
nothing calls this directly
no test coverage detected