File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ struct ifreq {
145
145
struct sockaddr ifru_broadaddr ;
146
146
struct sockaddr ifru_netmask ;
147
147
short ifru_flags ;
148
+ short ifru_ifindex ;
148
149
long ifru_metric ;
149
150
long ifru_mtu ;
150
151
struct ifstat ifru_stats ;
@@ -156,6 +157,7 @@ struct ifreq {
156
157
#define ifr_broadaddr ifr_ifru.ifru_broadaddr /* broadcast address */
157
158
#define ifr_netmask ifr_ifru.ifru_netmask /* netmask */
158
159
#define ifr_flags ifr_ifru.ifru_flags /* flags */
160
+ #define ifr_ifindex ifr_ifru.ifru_ifindex /* ifindex */
159
161
#define ifr_metric ifr_ifru.ifru_metric /* metric */
160
162
#define ifr_mtu ifr_ifru.ifru_mtu /* mtu */
161
163
#define ifr_stats ifr_ifru.ifru_stats /* statistics */
Original file line number Diff line number Diff line change 47
47
#define SIOCADDRT (('S' << 8) | 30) /* add routing table entry */
48
48
#define SIOCDELRT (('S' << 8) | 31) /* delete routing table entry */
49
49
50
+ #define SIOCGIFINDEX (('S' << 8) | 32)
51
+ #define SIOGIFINDEX SIOCGIFINDEX
52
+
50
53
/* ARP cache control calls */
51
54
#define SIOCDARP (('S' << 8) | 40) /* delete ARP table entry */
52
55
#define SIOCGARP (('S' << 8) | 41) /* get ARP table entry */
You can’t perform that action at this time.
0 commit comments