File tree 5 files changed +20
-1
lines changed
5 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -2649,6 +2649,10 @@ fn test_linux(target: &str) {
2649
2649
// Require Linux kernel 5.6:
2650
2650
"VMADDR_CID_LOCAL" => true ,
2651
2651
2652
+ // IPPROTO_MAX was increased in 5.6 for IPPROTO_MPTCP:
2653
+ | "IPPROTO_MAX"
2654
+ | "IPPROTO_MPTCP" => true ,
2655
+
2652
2656
// Defined in kernel headers but musl removes it; need musl 1.2 for definition in musl
2653
2657
// headers.
2654
2658
"P_PIDFD" => true ,
Original file line number Diff line number Diff line change @@ -1008,6 +1008,8 @@ pub const SOCK_SEQPACKET: ::c_int = 5;
1008
1008
pub const SOCK_DCCP : :: c_int = 6 ;
1009
1009
pub const SOCK_PACKET : :: c_int = 10 ;
1010
1010
1011
+ pub const IPPROTO_MAX : :: c_int = 256 ;
1012
+
1011
1013
pub const SOL_SOCKET : :: c_int = 1 ;
1012
1014
pub const SOL_SCTP : :: c_int = 132 ;
1013
1015
pub const SOL_IPX : :: c_int = 256 ;
@@ -1068,6 +1070,8 @@ pub const SO_RXQ_OVFL: ::c_int = 40;
1068
1070
pub const SO_PEEK_OFF : :: c_int = 42 ;
1069
1071
pub const SO_BUSY_POLL : :: c_int = 46 ;
1070
1072
1073
+ pub const TCP_ULP : :: c_int = 31 ;
1074
+
1071
1075
pub const IPTOS_ECN_NOTECT : u8 = 0x00 ;
1072
1076
1073
1077
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 @@ -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 {
@@ -1262,6 +1263,15 @@ pub const SCHED_RESET_ON_FORK: ::c_int = 0x40000000;
1262
1263
1263
1264
// netinet/in.h
1264
1265
// NOTE: These are in addition to the constants defined in src/unix/mod.rs
1266
+
1267
+ /// Multipath TCP
1268
+ pub const IPPROTO_MPTCP : :: c_int = 262 ;
1269
+ #[ deprecated(
1270
+ since = "0.2.79" ,
1271
+ note = "IPPROTO_MAX depends on the kernel version on the target system"
1272
+ ) ]
1273
+ pub const IPPROTO_MAX : :: c_int = 263 ;
1274
+
1265
1275
pub const AF_IB : :: c_int = 27 ;
1266
1276
pub const AF_MPLS : :: c_int = 28 ;
1267
1277
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