Return a list of network interface information (index int, name string) tuples. OSError if the system call fails.
socket.if_nameindex()