Skip to content

Commit

Permalink
Add TCP_* sockopts in ws2ipdef.h (retep998#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Oct 23, 2021
1 parent 2f76bde commit 727f6c1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/shared/ws2ipdef.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,17 @@ STRUCT!{struct IN6_PKTINFO {
ipi6_ifindex: ULONG,
}}
pub type PIN6_PKTINFO = *mut IN6_PKTINFO;
pub const TCP_EXPEDITED_1122: c_int = 0x0002;
pub const TCP_KEEPALIVE: c_int = 3;
pub const TCP_MAXSEG: c_int = 4;
pub const TCP_MAXRT: c_int = 5;
pub const TCP_STDURG: c_int = 6;
pub const TCP_NOURG: c_int = 7;
pub const TCP_ATMARK: c_int = 8;
pub const TCP_NOSYNRETRIES: c_int = 9;
pub const TCP_TIMESTAMPS: c_int = 10;
pub const TCP_OFFLOAD_PREFERENCE: c_int = 11;
pub const TCP_CONGESTION_ALGORITHM: c_int = 12;
pub const TCP_DELAY_FIN_ACK: c_int = 13;
pub const TCP_MAXRTMS: c_int = 14;
pub const TCP_FASTOPEN: c_int = 15;

0 comments on commit 727f6c1

Please sign in to comment.