File tree 5 files changed +22
-1
lines changed
5 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -2613,6 +2613,10 @@ fn test_linux(target: &str) {
2613
2613
// Require Linux kernel 5.6:
2614
2614
"VMADDR_CID_LOCAL" => true ,
2615
2615
2616
+ // IPPROTO_MAX was increased in 5.6 for IPPROTO_MPTCP:
2617
+ | "IPPROTO_MAX"
2618
+ | "IPPROTO_MPTCP" => true ,
2619
+
2616
2620
// Defined in kernel headers but musl removes it; need musl 1.2 for definition in musl
2617
2621
// headers.
2618
2622
"P_PIDFD" => true ,
Original file line number Diff line number Diff line change @@ -1025,6 +1025,8 @@ pub const SOCK_SEQPACKET: ::c_int = 5;
1025
1025
pub const SOCK_DCCP : :: c_int = 6 ;
1026
1026
pub const SOCK_PACKET : :: c_int = 10 ;
1027
1027
1028
+ pub const IPPROTO_MAX : :: c_int = 256 ;
1029
+
1028
1030
pub const SOL_SOCKET : :: c_int = 1 ;
1029
1031
pub const SOL_SCTP : :: c_int = 132 ;
1030
1032
pub const SOL_IPX : :: c_int = 256 ;
@@ -1085,6 +1087,8 @@ pub const SO_RXQ_OVFL: ::c_int = 40;
1085
1087
pub const SO_PEEK_OFF : :: c_int = 42 ;
1086
1088
pub const SO_BUSY_POLL : :: c_int = 46 ;
1087
1089
1090
+ pub const TCP_ULP : :: c_int = 31 ;
1091
+
1088
1092
pub const IPTOS_ECN_NOTECT : u8 = 0x00 ;
1089
1093
1090
1094
pub const O_ACCMODE : :: c_int = 3 ;
Original file line number Diff line number Diff line change @@ -1557,6 +1557,8 @@ pub const SOCK_STREAM: ::c_int = 1;
1557
1557
pub const SOCK_DGRAM : :: c_int = 2 ;
1558
1558
pub const SOCK_SEQPACKET : :: c_int = 5 ;
1559
1559
1560
+ pub const IPPROTO_MAX : :: c_int = 256 ;
1561
+
1560
1562
pub const SOL_SOCKET : :: c_int = 1 ;
1561
1563
1562
1564
pub const SO_REUSEADDR : :: c_int = 2 ;
Original file line number Diff line number Diff line change @@ -1240,6 +1240,7 @@ pub const RTLD_NOW: ::c_int = 0x2;
1240
1240
pub const AT_EACCESS : :: c_int = 0x200 ;
1241
1241
1242
1242
pub const TCP_MD5SIG : :: c_int = 14 ;
1243
+ pub const TCP_ULP : :: c_int = 31 ;
1243
1244
1244
1245
align_const ! {
1245
1246
pub const PTHREAD_MUTEX_INITIALIZER : pthread_mutex_t = pthread_mutex_t {
@@ -1274,6 +1275,17 @@ pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000;
1274
1275
1275
1276
// netinet/in.h
1276
1277
// NOTE: These are in addition to the constants defined in src/unix/mod.rs
1278
+
1279
+ /// Multipath TCP
1280
+ pub const IPPROTO_MPTCP : :: c_int = 262 ;
1281
+ #[ deprecated(
1282
+ since = "0.2.80" ,
1283
+ note = "This value was increased in the newer kernel \
1284
+ and we'll change this following upstream in the future release. \
1285
+ See #1896 for more info."
1286
+ ) ]
1287
+ pub const IPPROTO_MAX : :: c_int = 256 ;
1288
+
1277
1289
pub const AF_IB : :: c_int = 27 ;
1278
1290
pub const AF_MPLS : :: c_int = 28 ;
1279
1291
pub const AF_NFC : :: c_int = 39 ;
Original file line number Diff line number Diff line change @@ -869,7 +869,6 @@ pub const IPPROTO_UDPLITE: ::c_int = 136;
869
869
pub const IPPROTO_MPLS : :: c_int = 137 ;
870
870
/// raw IP packet
871
871
pub const IPPROTO_RAW : :: c_int = 255 ;
872
- pub const IPPROTO_MAX : :: c_int = 256 ;
873
872
874
873
pub const MCAST_EXCLUDE : :: c_int = 0 ;
875
874
pub const MCAST_INCLUDE : :: c_int = 1 ;
You can’t perform that action at this time.
0 commit comments