File tree 2 files changed +8
-1
lines changed
src/unix/linux_like/linux 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2645,6 +2645,10 @@ fn test_linux(target: &str) {
2645
2645
// Require Linux kernel 5.6:
2646
2646
"VMADDR_CID_LOCAL" => true ,
2647
2647
2648
+ // IPPROTO_MAX was increased in 5.6 for IPPROTO_MPTCP:
2649
+ | "IPPROTO_MAX"
2650
+ | "IPPROTO_MPTCP" => true ,
2651
+
2648
2652
// Defined in kernel headers but musl removes it; need musl 1.2 for definition in musl
2649
2653
// headers.
2650
2654
"P_PIDFD" => true ,
Original file line number Diff line number Diff line change @@ -1228,6 +1228,7 @@ pub const RTLD_NOW: ::c_int = 0x2;
1228
1228
pub const AT_EACCESS : :: c_int = 0x200 ;
1229
1229
1230
1230
pub const TCP_MD5SIG : :: c_int = 14 ;
1231
+ pub const TCP_ULP : :: c_int = 31 ;
1231
1232
1232
1233
align_const ! {
1233
1234
pub const PTHREAD_MUTEX_INITIALIZER : pthread_mutex_t = pthread_mutex_t {
@@ -1316,7 +1317,9 @@ pub const IPPROTO_UDPLITE: ::c_int = 136;
1316
1317
pub const IPPROTO_MPLS : :: c_int = 137 ;
1317
1318
/// raw IP packet
1318
1319
pub const IPPROTO_RAW : :: c_int = 255 ;
1319
- pub const IPPROTO_MAX : :: c_int = 256 ;
1320
+ /// Multipath TCP
1321
+ pub const IPPROTO_MPTCP : :: c_int = 262 ;
1322
+ pub const IPPROTO_MAX : :: c_int = 263 ;
1320
1323
1321
1324
pub const IP_MSFILTER : :: c_int = 41 ;
1322
1325
pub const MCAST_JOIN_GROUP : :: c_int = 42 ;
You can’t perform that action at this time.
0 commit comments