Contents

ifnet_find_by_name

Declaration

errno_t ifnet_find_by_name(const char *ifname, ifnet_t *interface);

Parameters

  • name:

    The name of the interface, including any unit number (i.e. "en0").

  • interface:

    A pointer to an interface reference. This will be filled in if a matching interface is found.

Return Value

0 on success otherwise the errno error.

Discussion

Find an interface by the name including the unit number. Caller must call ifnet_release on any non-null interface return value.

See Also

Network Kernel Extensions