Skip to content

Commit f9e7aac

Browse files
authored
Merge pull request #1634 from zonyitoo/feature-linux-fastopen-connect
Add TCP_FASTOPEN_CONNECT for Linux after 4.11
2 parents 70d4c56 + 1087a0e commit f9e7aac

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/unix/linux_like/emscripten/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,7 @@ pub const TCP_QUEUE_SEQ: ::c_int = 21;
12271227
pub const TCP_REPAIR_OPTIONS: ::c_int = 22;
12281228
pub const TCP_FASTOPEN: ::c_int = 23;
12291229
pub const TCP_TIMESTAMP: ::c_int = 24;
1230+
pub const TCP_FASTOPEN_CONNECT: ::c_int = 30;
12301231

12311232
#[doc(hidden)]
12321233
#[deprecated(since = "0.2.55", note = "Use SIGSYS instead")]

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ pub const TCP_QUEUE_SEQ: ::c_int = 21;
410410
pub const TCP_REPAIR_OPTIONS: ::c_int = 22;
411411
pub const TCP_FASTOPEN: ::c_int = 23;
412412
pub const TCP_TIMESTAMP: ::c_int = 24;
413+
pub const TCP_FASTOPEN_CONNECT: ::c_int = 30;
413414

414415
/* DCCP socket options */
415416
pub const DCCP_SOCKOPT_PACKET_SIZE: ::c_int = 1;

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ pub const TCP_QUEUE_SEQ: ::c_int = 21;
271271
pub const TCP_REPAIR_OPTIONS: ::c_int = 22;
272272
pub const TCP_FASTOPEN: ::c_int = 23;
273273
pub const TCP_TIMESTAMP: ::c_int = 24;
274+
pub const TCP_FASTOPEN_CONNECT: ::c_int = 30;
274275

275276
#[deprecated(since = "0.2.55", note = "Use SIGSYS instead")]
276277
pub const SIGUNUSED: ::c_int = ::SIGSYS;

0 commit comments

Comments
 (0)