File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -672,6 +672,9 @@ fn main() {
672
672
// shouldn't be used in code anyway...
673
673
"AF_MAX" | "PF_MAX" => true ,
674
674
675
+ // These are not in a glibc release yet, only in kernel headers.
676
+ "AF_XDP" | "PF_XDP" | "SOL_XDP" if linux => true ,
677
+
675
678
// Present on historical versions of iOS, but now removed in more
676
679
// recent SDKs
677
680
"ARPOP_REQUEST"
Original file line number Diff line number Diff line change @@ -1058,10 +1058,12 @@ pub const AF_IB: ::c_int = 27;
1058
1058
pub const AF_MPLS : :: c_int = 28 ;
1059
1059
pub const AF_NFC : :: c_int = 39 ;
1060
1060
pub const AF_VSOCK : :: c_int = 40 ;
1061
+ pub const AF_XDP : :: c_int = 44 ;
1061
1062
pub const PF_IB : :: c_int = AF_IB ;
1062
1063
pub const PF_MPLS : :: c_int = AF_MPLS ;
1063
1064
pub const PF_NFC : :: c_int = AF_NFC ;
1064
1065
pub const PF_VSOCK : :: c_int = AF_VSOCK ;
1066
+ pub const PF_XDP : :: c_int = AF_XDP ;
1065
1067
1066
1068
// System V IPC
1067
1069
pub const IPC_PRIVATE : :: key_t = 0 ;
Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ pub const SOL_IUCV: ::c_int = 277;
276
276
pub const SOL_CAIF : :: c_int = 278 ;
277
277
pub const SOL_ALG : :: c_int = 279 ;
278
278
pub const SOL_NFC : :: c_int = 280 ;
279
+ pub const SOL_XDP : :: c_int = 283 ;
279
280
280
281
pub const MSG_TRYHARD : :: c_int = 4 ;
281
282
You can’t perform that action at this time.
0 commit comments