1if.h(3HEAD) Headers if.h(3HEAD)
2
3
4
6 if.h, if - sockets local interfaces
7
9 #include <net/if.h>
10
11
13 The <net/if.h> header defines the if_nameindex structure, which
14 includes the following members:
15
16 unsigned if_index /* numeric index of the interface */
17 char *if_name /* null-terminated name of the interface */
18
19
20
21 The <net/if.h> header defines the following macro for the length of a
22 buffer containing an interface name (including the terminating null
23 character):
24
25 IF_NAMESIZE interface name length
26
27
29 See attributes(5) for descriptions of the following attributes:
30
31
32
33
34 ┌─────────────────────────────┬─────────────────────────────┐
35 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
36 ├─────────────────────────────┼─────────────────────────────┤
37 │Interface Stability │Standard │
38 └─────────────────────────────┴─────────────────────────────┘
39
41 if_nametoindex(3XNET), attributes(5), standards(5)
42
43
44
45SunOS 5.11 10 Sep 2004 if.h(3HEAD)