if_nametoindex
if_nametoindex converts the ANSI interface name for a network interface to a local index for the interface.
Syntax
NET_IFINDEX if_nametoindex(
[in] const char* InterfaceName
);
Parameters
[in] InterfaceName
A pointer to a buffer that holds the null-terminated ANSI string containing the interface name.
Return Value
If this function succeeds, it returns the local interface index. If this function fails, it returns zero.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
netioapi.h |
RttcpipApi.lib |
See also: