Lines Matching defs:index
46 - socket.if_nametoindex(name) -> corresponding interface index
47 - socket.if_indextoname(index) -> corresponding interface name
1149 * name to interface index */
1470 /* need to look up interface name give index */
1525 /* need to look up interface name given index */
6895 Returns a list of network interface information (index, name) tuples.");
6902 NET_IFINDEX index;
6904 unsigned long index;
6910 index = if_nametoindex(PyBytes_AS_STRING(oname));
6912 if (index == 0) {
6918 return PyLong_FromUnsignedLong(index);
6924 Returns the interface index corresponding to the interface name if_name.");
6930 NET_IFINDEX index;
6932 unsigned long index;
6936 index = PyLong_AsUnsignedLong(arg);
6937 if (index == (unsigned long) -1)
6940 if (if_indextoname(index, name) == NULL) {
6951 Returns the interface name corresponding to the interface index if_index.");