File tree 2 files changed +19
-1
lines changed 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ pub const EFD_CLOEXEC: ::c_int = 0x80000;
25
25
pub const TCP_KEEPIDLE : :: c_int = 34 ;
26
26
pub const TCP_KEEPCNT : :: c_int = 35 ;
27
27
pub const TCP_KEEPINTVL : :: c_int = 36 ;
28
+ pub const TCP_CONGESTION : :: c_int = 37 ;
28
29
29
30
extern "C" {
30
31
pub fn eventfd ( init : :: c_uint , flags : :: c_int ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -1385,7 +1385,24 @@ pub const IP_DROP_MEMBERSHIP: ::c_int = 20;
1385
1385
pub const IPV6_JOIN_GROUP : :: c_int = 9 ;
1386
1386
pub const IPV6_LEAVE_GROUP : :: c_int = 10 ;
1387
1387
1388
- pub const TCP_NODELAY : :: c_int = 1 ;
1388
+ // These TCP socket options are common between illumos and Solaris, while higher
1389
+ // numbers have generally diverged:
1390
+ pub const TCP_NODELAY : :: c_int = 0x1 ;
1391
+ pub const TCP_MAXSEG : :: c_int = 0x2 ;
1392
+ pub const TCP_KEEPALIVE : :: c_int = 0x8 ;
1393
+ pub const TCP_NOTIFY_THRESHOLD : :: c_int = 0x10 ;
1394
+ pub const TCP_ABORT_THRESHOLD : :: c_int = 0x11 ;
1395
+ pub const TCP_CONN_NOTIFY_THRESHOLD : :: c_int = 0x12 ;
1396
+ pub const TCP_CONN_ABORT_THRESHOLD : :: c_int = 0x13 ;
1397
+ pub const TCP_RECVDSTADDR : :: c_int = 0x14 ;
1398
+ pub const TCP_INIT_CWND : :: c_int = 0x15 ;
1399
+ pub const TCP_KEEPALIVE_THRESHOLD : :: c_int = 0x16 ;
1400
+ pub const TCP_KEEPALIVE_ABORT_THRESHOLD : :: c_int = 0x17 ;
1401
+ pub const TCP_CORK : :: c_int = 0x18 ;
1402
+ pub const TCP_RTO_INITIAL : :: c_int = 0x19 ;
1403
+ pub const TCP_RTO_MIN : :: c_int = 0x1a ;
1404
+ pub const TCP_RTO_MAX : :: c_int = 0x1b ;
1405
+ pub const TCP_LINGER2 : :: c_int = 0x1c ;
1389
1406
1390
1407
pub const SOL_SOCKET : :: c_int = 0xffff ;
1391
1408
pub const SO_DEBUG : :: c_int = 0x01 ;
You can’t perform that action at this time.
0 commit comments