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

Function dev_from_index

scapy/interfaces.py:413–416  ·  view source on GitHub ↗

Return interface for a given interface index

(if_index)

Source from the content-addressed store, hash-verified

411
412
413def dev_from_index(if_index):
414 # type: (int) -> NetworkInterface
415 """Return interface for a given interface index"""
416 return conf.ifaces.dev_from_index(if_index)
417
418
419def resolve_iface(dev, retry=True):

Callers 3

ScopedIPFunction · 0.90
_read_routes_c_v1Function · 0.90
_read_routes_cFunction · 0.90

Calls 1

dev_from_indexMethod · 0.80

Tested by

no test coverage detected