Go to the documentation of this file.
22 #include <linux/types.h>
23 #include <linux/socket.h>
24 #include <linux/compiler.h>
32 #define IFF_BROADCAST 0x2
34 #define IFF_LOOPBACK 0x8
35 #define IFF_POINTOPOINT 0x10
36 #define IFF_NOTRAILERS 0x20
37 #define IFF_RUNNING 0x40
38 #define IFF_NOARP 0x80
39 #define IFF_PROMISC 0x100
40 #define IFF_ALLMULTI 0x200
42 #define IFF_MASTER 0x400
43 #define IFF_SLAVE 0x800
45 #define IFF_MULTICAST 0x1000
47 #define IFF_PORTSEL 0x2000
48 #define IFF_AUTOMEDIA 0x4000
49 #define IFF_DYNAMIC 0x8000
51 #define IFF_LOWER_UP 0x10000
52 #define IFF_DORMANT 0x20000
54 #define IFF_ECHO 0x40000
56 #define IFF_VOLATILE (IFF_LOOPBACK|IFF_POINTOPOINT|IFF_BROADCAST|IFF_ECHO|\
57 IFF_MASTER|IFF_SLAVE|IFF_RUNNING|IFF_LOWER_UP|IFF_DORMANT)
60 #define IFF_802_1Q_VLAN 0x1
61 #define IFF_EBRIDGE 0x2
62 #define IFF_SLAVE_INACTIVE 0x4
63 #define IFF_MASTER_8023AD 0x8
64 #define IFF_MASTER_ALB 0x10
65 #define IFF_BONDING 0x20
66 #define IFF_SLAVE_NEEDARP 0x40
67 #define IFF_ISATAP 0x80
68 #define IFF_MASTER_ARPMON 0x100
69 #define IFF_WAN_HDLC 0x200
70 #define IFF_XMIT_DST_RELEASE 0x400
73 #define IFF_DONT_BRIDGE 0x800
74 #define IFF_DISABLE_NETPOLL 0x1000
75 #define IFF_MACVLAN_PORT 0x2000
76 #define IFF_BRIDGE_PORT 0x4000
77 #define IFF_OVS_DATAPATH 0x8000
79 #define IFF_TX_SKB_SHARING 0x10000
81 #define IFF_UNICAST_FLT 0x20000
82 #define IFF_TEAM_PORT 0x40000
83 #define IFF_SUPP_NOFCS 0x80000
84 #define IFF_LIVE_ADDR_CHANGE 0x100000
88 #define IF_GET_IFACE 0x0001
89 #define IF_GET_PROTO 0x0002
92 #define IF_IFACE_V35 0x1000
93 #define IF_IFACE_V24 0x1001
94 #define IF_IFACE_X21 0x1002
95 #define IF_IFACE_T1 0x1003
96 #define IF_IFACE_E1 0x1004
97 #define IF_IFACE_SYNC_SERIAL 0x1005
98 #define IF_IFACE_X21D 0x1006
101 #define IF_PROTO_HDLC 0x2000
102 #define IF_PROTO_PPP 0x2001
103 #define IF_PROTO_CISCO 0x2002
104 #define IF_PROTO_FR 0x2003
105 #define IF_PROTO_FR_ADD_PVC 0x2004
106 #define IF_PROTO_FR_DEL_PVC 0x2005
107 #define IF_PROTO_X25 0x2006
108 #define IF_PROTO_HDLC_ETH 0x2007
109 #define IF_PROTO_FR_ADD_ETH_PVC 0x2008
110 #define IF_PROTO_FR_DEL_ETH_PVC 0x2009
111 #define IF_PROTO_FR_PVC 0x200A
112 #define IF_PROTO_FR_ETH_PVC 0x200B
113 #define IF_PROTO_RAW 0x200C
177 #define IFHWADDRLEN 6
200 #define ifr_name ifr_ifrn.ifrn_name
201 #define ifr_hwaddr ifr_ifru.ifru_hwaddr
202 #define ifr_addr ifr_ifru.ifru_addr
203 #define ifr_dstaddr ifr_ifru.ifru_dstaddr
204 #define ifr_broadaddr ifr_ifru.ifru_broadaddr
205 #define ifr_netmask ifr_ifru.ifru_netmask
206 #define ifr_flags ifr_ifru.ifru_flags
207 #define ifr_metric ifr_ifru.ifru_ivalue
208 #define ifr_mtu ifr_ifru.ifru_mtu
209 #define ifr_map ifr_ifru.ifru_map
210 #define ifr_slave ifr_ifru.ifru_slave
211 #define ifr_data ifr_ifru.ifru_data
212 #define ifr_ifindex ifr_ifru.ifru_ivalue
213 #define ifr_bandwidth ifr_ifru.ifru_ivalue
214 #define ifr_qlen ifr_ifru.ifru_ivalue
215 #define ifr_newname ifr_ifru.ifru_newname
216 #define ifr_settings ifr_ifru.ifru_settings
232 #define ifc_buf ifc_ifcu.ifcu_buf
233 #define ifc_req ifc_ifcu.ifcu_req