socket.if_nametoindex(if_name) 
Return a network interface index number corresponding to an interface name. OSError if no interface with the given name exists.
Availability: Unix.
New in version 3.3.
socket.if_nametoindex(if_name) 
Return a network interface index number corresponding to an interface name. OSError if no interface with the given name exists.
Availability: Unix.
New in version 3.3.
Please login to continue.