File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -3669,6 +3669,9 @@ fn test_linux(target: &str) {
3669
3669
// FIXME: requires Linux >= 5.7:
3670
3670
"MREMAP_DONTUNMAP" if musl || sparc64 => true ,
3671
3671
3672
+ // FIXME: requires Linux >= v5.8
3673
+ "IF_LINK_MODE_TESTING" if musl || sparc64 => true ,
3674
+
3672
3675
// FIXME: Requires more recent kernel headers (5.9 / 5.11):
3673
3676
| "CLOSE_RANGE_UNSHARE"
3674
3677
| "CLOSE_RANGE_CLOEXEC" if musl || sparc64 => true ,
Original file line number Diff line number Diff line change @@ -839,6 +839,16 @@ HWTSTAMP_FILTER_PTP_V2_SYNC
839
839
HWTSTAMP_FILTER_PTP_V2_DELAY_REQ
840
840
HWTSTAMP_FILTER_NTP_ALL
841
841
IBSHIFT
842
+ IF_LINK_MODE_DEFAULT
843
+ IF_LINK_MODE_DORMANT
844
+ IF_LINK_MODE_TESTING
845
+ IF_OPER_DORMANT
846
+ IF_OPER_DOWN
847
+ IF_OPER_LOWERLAYERDOWN
848
+ IF_OPER_NOTPRESENT
849
+ IF_OPER_TESTING
850
+ IF_OPER_UNKNOWN
851
+ IF_OPER_UP
842
852
IFA_ADDRESS
843
853
IFA_ANYCAST
844
854
IFA_BROADCAST
Original file line number Diff line number Diff line change @@ -3194,6 +3194,19 @@ pub const ALG_SET_AEAD_AUTHSIZE: ::c_int = 5;
3194
3194
pub const ALG_OP_DECRYPT : :: c_int = 0 ;
3195
3195
pub const ALG_OP_ENCRYPT : :: c_int = 1 ;
3196
3196
3197
+ // include/uapi/linux/if.h
3198
+ pub const IF_OPER_UNKNOWN : :: c_int = 0 ;
3199
+ pub const IF_OPER_NOTPRESENT : :: c_int = 1 ;
3200
+ pub const IF_OPER_DOWN : :: c_int = 2 ;
3201
+ pub const IF_OPER_LOWERLAYERDOWN : :: c_int = 3 ;
3202
+ pub const IF_OPER_TESTING : :: c_int = 4 ;
3203
+ pub const IF_OPER_DORMANT : :: c_int = 5 ;
3204
+ pub const IF_OPER_UP : :: c_int = 6 ;
3205
+
3206
+ pub const IF_LINK_MODE_DEFAULT : :: c_int = 0 ;
3207
+ pub const IF_LINK_MODE_DORMANT : :: c_int = 1 ;
3208
+ pub const IF_LINK_MODE_TESTING : :: c_int = 2 ;
3209
+
3197
3210
// include/uapi/linux/udp.h
3198
3211
pub const UDP_CORK : :: c_int = 1 ;
3199
3212
pub const UDP_ENCAP : :: c_int = 100 ;
You can’t perform that action at this time.
0 commit comments