Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

if(3HEAD)

Name

if.h, if - sockets local interfaces

Synopsis

#include <net/if.h>

Description

The <net/if.h> header defines the if_nameindex structure, which includes the following members:

unsigned if_index     /* numeric index of the interface */
char     *if_name     /* null-terminated name of the interface */

The <net/if.h> header defines the following macro for the length of a buffer containing an interface name (including the terminating null character):

IF_NAMESIZE

interface name length

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Standard

See Also

if_nametoindex(3C), attributes(7), standards(7)