Return a network interface index number corresponding to an interface name. OSError if no interface with the given name exists.
socket.if_nametoindex(if_name)