Skip to content

Commit 1312cc2

Browse files
committed
Drop target_os bitrig from InterfaceFlags, rearrange long cfg lines.
1 parent 7ad1f1c commit 1312cc2

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

src/net/if_.rs

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ libc_bitflags!(
5050
/// Avoid use of trailers. (see
5151
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
5252
#[cfg(any(target_os = "android",
53-
target_os = "bitrig",
5453
target_os = "fuchsia",
5554
target_os = "ios",
5655
target_os = "linux",
@@ -67,7 +66,6 @@ libc_bitflags!(
6766
/// Resources allocated. (see
6867
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
6968
#[cfg(any(target_os = "android",
70-
target_os = "bitrig",
7169
target_os = "dragonfly",
7270
target_os = "fuchsia",
7371
target_os = "ios",
@@ -105,8 +103,7 @@ libc_bitflags!(
105103
#[cfg(target_os = "freebsd")]
106104
IFF_DRV_OACTIVE;
107105
/// transmission in progress
108-
#[cfg(any(target_os = "bitrig",
109-
target_os = "macos",
106+
#[cfg(any(target_os = "macos",
110107
target_os = "netbsd",
111108
target_os = "openbsd",
112109
target_os = "ios"))]
@@ -121,8 +118,7 @@ libc_bitflags!(
121118
#[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))]
122119
IFF_SLAVE;
123120
/// Can't hear own transmissions.
124-
#[cfg(any(target_os = "bitrig",
125-
target_os = "dragonfly",
121+
#[cfg(any(target_os = "dragonfly",
126122
target_os = "freebsd",
127123
target_os = "macos",
128124
target_os = "netbsd",
@@ -139,7 +135,12 @@ libc_bitflags!(
139135

140136
// bitmask: 0x1000
141137
/// Per link layer defined bit.
142-
#[cfg(any(target_os = "bitrig", target_os = "dragonfly", target_os = "freebsd", target_os = "macos", target_os = "netbsd", target_os = "openbsd", target_os = "ios"))]
138+
#[cfg(any(target_os = "dragonfly",
139+
target_os = "freebsd",
140+
target_os = "macos",
141+
target_os = "netbsd",
142+
target_os = "openbsd",
143+
target_os = "ios"))]
143144
IFF_LINK0;
144145
/// Multicast using broadcast.
145146
#[cfg(any(target_os = "solaris"))]
@@ -151,7 +152,12 @@ libc_bitflags!(
151152
#[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))]
152153
IFF_PORTSEL;
153154
/// Per link layer defined bit.
154-
#[cfg(any(target_os = "bitrig", target_os = "dragonfly", target_os = "freebsd", target_os = "macos", target_os = "netbsd", target_os = "openbsd", target_os = "ios"))]
155+
#[cfg(any(target_os = "dragonfly",
156+
target_os = "freebsd",
157+
target_os = "macos",
158+
target_os = "netbsd",
159+
target_os = "openbsd",
160+
target_os = "ios"))]
155161
IFF_LINK1;
156162
/// Non-unique address.
157163
#[cfg(any(target_os = "solaris"))]
@@ -163,10 +169,18 @@ libc_bitflags!(
163169
#[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))]
164170
IFF_AUTOMEDIA;
165171
/// Per link layer defined bit.
166-
#[cfg(any(target_os = "bitrig", target_os = "dragonfly", target_os = "freebsd", target_os = "macos", target_os = "netbsd", target_os = "openbsd", target_os = "ios"))]
172+
#[cfg(any(target_os = "dragonfly",
173+
target_os = "freebsd",
174+
target_os = "macos",
175+
target_os = "netbsd",
176+
target_os = "openbsd",
177+
target_os = "ios"))]
167178
IFF_LINK2;
168179
/// Use alternate physical connection.
169-
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "macos", target_os = "ios"))]
180+
#[cfg(any(target_os = "dragonfly",
181+
target_os = "freebsd",
182+
target_os = "macos",
183+
target_os = "ios"))]
170184
IFF_ALTPHYS;
171185
/// DHCP controlls interface.
172186
#[cfg(any(target_os = "solaris"))]

0 commit comments

Comments
 (0)