posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
if.h File Reference

Network interface names and indices (<net/if.h>) More...

Go to the source code of this file.

Data Structures

struct  if_nameindex
 Network interface name-to-index mapping. More...
 

Macros

#define IF_NAMESIZE   1
 

Functions

char * if_indextoname (unsigned int ifindex, char *ifname)
 Map a network interface index to its name.
 
void if_freenameindex (struct if_nameindex *ptr)
 Free a list returned by if_nameindex().
 
struct if_nameindexif_nameindex (void)
 Return all network interfaces as a name-index array.
 
unsigned int if_nametoindex (const char *ifname)
 Map a network interface name to its index.
 

Detailed Description

Network interface names and indices (<net/if.h>)

See also
POSIX.1-2017 <net/if.h>

Definition in file if.h.

Macro Definition Documentation

◆ IF_NAMESIZE

#define IF_NAMESIZE   1

Definition at line 24 of file if.h.