@@ -36,17 +36,26 @@ libc_bitflags!(
36
36
/// Interface is a point-to-point link. (see
37
37
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
38
38
IFF_POINTOPOINT ;
39
- #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "ios" ,
40
- target_os = "linux" , target_os = "macos" , target_os = "netbsd" ,
41
- target_os = "openbsd" ) ) ]
42
39
/// Avoid use of trailers. (see
43
40
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
41
+ #[ cfg( any( target_os = "android" ,
42
+ target_os = "fuchsia" ,
43
+ target_os = "ios" ,
44
+ target_os = "linux" ,
45
+ target_os = "macos" ,
46
+ target_os = "netbsd" ,
47
+ target_os = "openbsd" ) ) ]
44
48
IFF_NOTRAILERS ;
45
- #[ cfg( any( target_os = "android" , target_os = "dragonfly" , target_os = "fuchsia" ,
46
- target_os = "ios" , target_os = "linux" , target_os = "macos" ,
47
- target_os = "netbsd" , target_os = "openbsd" ) ) ]
48
49
/// Resources allocated. (see
49
50
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
51
+ #[ cfg( any( target_os = "android" ,
52
+ target_os = "dragonfly" ,
53
+ target_os = "fuchsia" ,
54
+ target_os = "ios" ,
55
+ target_os = "linux" ,
56
+ target_os = "macos" ,
57
+ target_os = "netbsd" ,
58
+ target_os = "openbsd" ) ) ]
50
59
IFF_RUNNING ;
51
60
/// No arp protocol, L2 destination address not set. (see
52
61
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
@@ -57,28 +66,28 @@ libc_bitflags!(
57
66
/// Receive all multicast packets. (see
58
67
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
59
68
IFF_ALLMULTI ;
60
- #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" ) ) ]
61
69
/// Master of a load balancing bundle. (see
62
70
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
63
- IFF_MASTER ;
64
71
#[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" ) ) ]
72
+ IFF_MASTER ;
65
73
/// Slave of a load balancing bundle. (see
66
74
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
75
+ #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" ) ) ]
67
76
IFF_SLAVE ;
68
77
/// Supports multicast. (see
69
78
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
70
79
IFF_MULTICAST ;
71
- #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" ) ) ]
72
80
/// Is able to select media type via ifmap. (see
73
81
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
74
- IFF_PORTSEL ;
75
82
#[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" ) ) ]
83
+ IFF_PORTSEL ;
76
84
/// Auto media selection active. (see
77
85
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
78
- IFF_AUTOMEDIA ;
79
86
#[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" ) ) ]
87
+ IFF_AUTOMEDIA ;
80
88
/// The addresses are lost when the interface goes down. (see
81
89
/// [`netdevice(7)`](http://man7.org/linux/man-pages/man7/netdevice.7.html))
90
+ #[ cfg( any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" ) ) ]
82
91
IFF_DYNAMIC ;
83
92
}
84
93
) ;
0 commit comments