Skip to content

Commit c11f86c

Browse files
committed
add TCP_* consts for linux
1 parent f46c4e1 commit c11f86c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/liblibc/lib.rs

+24
Original file line numberDiff line numberDiff line change
@@ -3534,6 +3534,30 @@ pub mod consts {
35343534
pub const IPV6_DROP_MEMBERSHIP: c_int = 21;
35353535

35363536
pub const TCP_NODELAY: c_int = 1;
3537+
pub const TCP_MAXSEG: c_int = 2;
3538+
pub const TCP_CORK: c_int = 3;
3539+
pub const TCP_KEEPIDLE: c_int = 4;
3540+
pub const TCP_KEEPINTVL: c_int = 5;
3541+
pub const TCP_KEEPCNT: c_int = 6;
3542+
pub const TCP_SYNCNT: c_int = 7;
3543+
pub const TCP_LINGER2: c_int = 8;
3544+
pub const TCP_DEFER_ACCEPT: c_int = 9;
3545+
pub const TCP_WINDOW_CLAMP: c_int = 10;
3546+
pub const TCP_INFO: c_int = 11;
3547+
pub const TCP_QUICKACK: c_int = 12;
3548+
pub const TCP_CONGESTION: c_int = 13;
3549+
pub const TCP_MD5SIG: c_int = 14;
3550+
pub const TCP_COOKIE_TRANSACTIONS: c_int = 15;
3551+
pub const TCP_THIN_LINEAR_TIMEOUTS: c_int = 16;
3552+
pub const TCP_THIN_DUPACK: c_int = 17;
3553+
pub const TCP_USER_TIMEOUT: c_int = 18;
3554+
pub const TCP_REPAIR: c_int = 19;
3555+
pub const TCP_REPAIR_QUEUE: c_int = 20;
3556+
pub const TCP_QUEUE_SEQ: c_int = 21;
3557+
pub const TCP_REPAIR_OPTIONS: c_int = 22;
3558+
pub const TCP_FASTOPEN: c_int = 23;
3559+
pub const TCP_TIMESTAMP: c_int = 24;
3560+
35373561
pub const SOL_SOCKET: c_int = 1;
35383562

35393563
pub const SO_DEBUG: c_int = 1;

0 commit comments

Comments
 (0)