@@ -40,25 +40,23 @@ libc_bitflags!(
40
40
IFF_POINTOPOINT ;
41
41
/// Avoid use of trailers. (see
42
42
/// [`netdevice(7)`](https://man7.org/linux/man-pages/man7/netdevice.7.html))
43
- #[ cfg( any( target_os = "android" ,
44
- target_os = "fuchsia" ,
43
+ #[ cfg( any(
44
+ linux_android,
45
+ solarish,
45
46
apple_targets,
46
- target_os = "linux" ,
47
- target_os = "netbsd" ,
48
- target_os = "illumos" ,
49
- target_os = "solaris" ) ) ]
47
+ target_os = "fuchsia" ,
48
+ target_os = "netbsd" ) ) ]
50
49
IFF_NOTRAILERS ;
51
50
/// Interface manages own routes.
52
51
#[ cfg( any( target_os = "dragonfly" ) ) ]
53
52
IFF_SMART ;
54
53
/// Resources allocated. (see
55
54
/// [`netdevice(7)`](https://man7.org/linux/man-pages/man7/netdevice.7.html))
56
- #[ cfg( any( target_os = "android" ,
55
+ #[ cfg( any(
56
+ linux_android,
57
57
bsd,
58
- target_os = "fuchsia" ,
59
- target_os = "illumos" ,
60
- target_os = "linux" ,
61
- target_os = "solaris" ) ) ]
58
+ solarish,
59
+ target_os = "fuchsia" ) ) ]
62
60
IFF_RUNNING ;
63
61
/// No arp protocol, L2 destination address not set. (see
64
62
/// [`netdevice(7)`](https://man7.org/linux/man-pages/man7/netdevice.7.html))
@@ -71,7 +69,7 @@ libc_bitflags!(
71
69
IFF_ALLMULTI ;
72
70
/// Master of a load balancing bundle. (see
73
71
/// [`netdevice(7)`](https://man7.org/linux/man-pages/man7/netdevice.7.html))
74
- #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux ") ) ]
72
+ #[ cfg( any( linux_android , target_os = "fuchsia" ) ) ]
75
73
IFF_MASTER ;
76
74
/// transmission in progress, tx hardware queue is full
77
75
#[ cfg( any( target_os = "freebsd" ,
@@ -84,11 +82,10 @@ libc_bitflags!(
84
82
IFF_INTELLIGENT ;
85
83
/// Slave of a load balancing bundle. (see
86
84
/// [`netdevice(7)`](https://man7.org/linux/man-pages/man7/netdevice.7.html))
87
- #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux ") ) ]
85
+ #[ cfg( any( linux_android , target_os = "fuchsia" ) ) ]
88
86
IFF_SLAVE ;
89
87
/// Can't hear own transmissions.
90
- #[ cfg( any( target_os = "dragonfly" ,
91
- target_os = "freebsd" ,
88
+ #[ cfg( any( freebsdlike,
92
89
target_os = "macos" ,
93
90
target_os = "netbsd" ,
94
91
target_os = "openbsd" ) ) ]
@@ -104,7 +101,7 @@ libc_bitflags!(
104
101
IFF_MULTI_BCAST ;
105
102
/// Is able to select media type via ifmap. (see
106
103
/// [`netdevice(7)`](https://man7.org/linux/man-pages/man7/netdevice.7.html))
107
- #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux ") ) ]
104
+ #[ cfg( any( linux_android , target_os = "fuchsia" ) ) ]
108
105
IFF_PORTSEL ;
109
106
/// Per link layer defined bit.
110
107
#[ cfg( bsd) ]
@@ -114,22 +111,20 @@ libc_bitflags!(
114
111
IFF_UNNUMBERED ;
115
112
/// Auto media selection active. (see
116
113
/// [`netdevice(7)`](https://man7.org/linux/man-pages/man7/netdevice.7.html))
117
- #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux ") ) ]
114
+ #[ cfg( any( linux_android , target_os = "fuchsia" ) ) ]
118
115
IFF_AUTOMEDIA ;
119
116
/// Per link layer defined bit.
120
117
#[ cfg( bsd) ]
121
118
IFF_LINK2 ;
122
119
/// Use alternate physical connection.
123
- #[ cfg( any( target_os = "dragonfly" ,
124
- target_os = "freebsd" ,
125
- apple_targets, ) ) ]
120
+ #[ cfg( any( freebsdlike, apple_targets) ) ]
126
121
IFF_ALTPHYS ;
127
122
/// DHCP controls interface.
128
123
#[ cfg( solarish) ]
129
124
IFF_DHCPRUNNING ;
130
125
/// The addresses are lost when the interface goes down. (see
131
126
/// [`netdevice(7)`](https://man7.org/linux/man-pages/man7/netdevice.7.html))
132
- #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux ") ) ]
127
+ #[ cfg( any( linux_android , target_os = "fuchsia" ) ) ]
133
128
IFF_DYNAMIC ;
134
129
/// Do not advertise.
135
130
#[ cfg( solarish) ]
@@ -195,13 +190,13 @@ libc_bitflags!(
195
190
#[ cfg( solarish) ]
196
191
IFF_NORTEXCH ;
197
192
/// Do not provide packet information
198
- #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux ") ) ]
193
+ #[ cfg( any( linux_android , target_os = "fuchsia" ) ) ]
199
194
IFF_NO_PI as libc:: c_int;
200
195
/// TUN device (no Ethernet headers)
201
- #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux ") ) ]
196
+ #[ cfg( any( linux_android , target_os = "fuchsia" ) ) ]
202
197
IFF_TUN as libc:: c_int;
203
198
/// TAP device
204
- #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux ") ) ]
199
+ #[ cfg( any( linux_android , target_os = "fuchsia" ) ) ]
205
200
IFF_TAP as libc:: c_int;
206
201
/// IPv4 interface.
207
202
#[ cfg( solarish) ]
0 commit comments