Print this page
Clearview IPMP manpages
@@ -85,23 +85,28 @@
memory, if_indextoname() returns NULL
and errno would be set to the proper
value, for example, ENOMEM.
- *if_nameindex() The if_nameindex() function returns an
+ if_nameindex() The if_nameindex() function returns an
array of if_nameindex structures, one
structure per interface. The
if_nameindex structure holds the
information about a single interface
and is defined when the <net/if.h>
header is included:
struct if_nameindex
unsigned int if_index; /* 1, 2, ... */
- char *if_name; /* null terminated name: "eri0", ... */
+ char *if_name; /* "net0", ... */
};
+ While any IPMP IP interfaces are
+ returned by *if_nameindex()*, the
+ underlying IP interfaces that comprise
+ each IPMP group are not returned.
+
The end of the array of structures is
indicated by a structure with an
if_index of 0 and an if_name of NULL.
The function returns a null pointer
upon an error and sets errno to the