Skip to content

Commit 6c6b200

Browse files
committed
Add TCP_* constants for mips/mipsel Linux
PR #24611 added these for other architectures, but missed the `#[cfg(any(target_arch = "mips", target_arch = "mipsel"))]` version of the module. The values are the same.
1 parent dff7676 commit 6c6b200

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
@@ -3624,6 +3624,30 @@ pub mod consts {
36243624
pub const IPV6_DROP_MEMBERSHIP: c_int = 21;
36253625

36263626
pub const TCP_NODELAY: c_int = 1;
3627+
pub const TCP_MAXSEG: c_int = 2;
3628+
pub const TCP_CORK: c_int = 3;
3629+
pub const TCP_KEEPIDLE: c_int = 4;
3630+
pub const TCP_KEEPINTVL: c_int = 5;
3631+
pub const TCP_KEEPCNT: c_int = 6;
3632+
pub const TCP_SYNCNT: c_int = 7;
3633+
pub const TCP_LINGER2: c_int = 8;
3634+
pub const TCP_DEFER_ACCEPT: c_int = 9;
3635+
pub const TCP_WINDOW_CLAMP: c_int = 10;
3636+
pub const TCP_INFO: c_int = 11;
3637+
pub const TCP_QUICKACK: c_int = 12;
3638+
pub const TCP_CONGESTION: c_int = 13;
3639+
pub const TCP_MD5SIG: c_int = 14;
3640+
pub const TCP_COOKIE_TRANSACTIONS: c_int = 15;
3641+
pub const TCP_THIN_LINEAR_TIMEOUTS: c_int = 16;
3642+
pub const TCP_THIN_DUPACK: c_int = 17;
3643+
pub const TCP_USER_TIMEOUT: c_int = 18;
3644+
pub const TCP_REPAIR: c_int = 19;
3645+
pub const TCP_REPAIR_QUEUE: c_int = 20;
3646+
pub const TCP_QUEUE_SEQ: c_int = 21;
3647+
pub const TCP_REPAIR_OPTIONS: c_int = 22;
3648+
pub const TCP_FASTOPEN: c_int = 23;
3649+
pub const TCP_TIMESTAMP: c_int = 24;
3650+
36273651
pub const SOL_SOCKET: c_int = 65535;
36283652

36293653
pub const SO_DEBUG: c_int = 0x0001;

0 commit comments

Comments
 (0)