Contents

ifnet_list_get

Declaration

errno_t ifnet_list_get(ifnet_family_t family, ifnet_t **interfaces, uint32_t *count);

Parameters

  • family:

    The interface family (i.e. IFNET_FAMILY_ETHERNET). To find interfaces of all families, use IFNET_FAMILY_ANY.

  • interfaces:

    A pointer to an array of interface references.

  • count:

    A pointer that will be filled in with the number of matching interfaces in the array.

Return Value

0 on success otherwise the errno error.

Discussion

Get a list of attached interfaces. List will be set to point to an array allocated by ifnet_list_get. The interfaces are refcounted and the counts will be incremented before the function returns. The list of interfaces must be freed using ifnet_list_free.

See Also

Network Kernel Extensions