diff options
Diffstat (limited to 'include/ntapi/nt_socket.h')
-rw-r--r-- | include/ntapi/nt_socket.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h index 2c34322..4ec8582 100644 --- a/include/ntapi/nt_socket.h +++ b/include/ntapi/nt_socket.h @@ -286,6 +286,35 @@ typedef enum _nt_afd_tcp_state { +/* afd tcp socket options */ +#define NT_TCP_OFFLOAD_NO_PREFERENCE (0) +#define NT_TCP_OFFLOAD_NOT_PREFERRED (1) +#define NT_TCP_OFFLOAD_PREFERRED (2) + +#define NT_TCP_NODELAY (1) +#define NT_TCP_EXPEDITED_1122 (2) +#define NT_TCP_KEEPALIVE (3) +#define NT_TCP_MAXSEG (4) +#define NT_TCP_MAXRT (5) +#define NT_TCP_STDURG (6) +#define NT_TCP_NOURG (7) +#define NT_TCP_ATMARK (8) +#define NT_TCP_NOSYNRETRIES (9) +#define NT_TCP_TIMESTAMPS (10) +#define NT_TCP_OFFLOAD_PREFERENCE (11) +#define NT_TCP_CONGESTION_ALGORITHM (12) +#define NT_TCP_DELAY_FIN_ACK (13) +#define NT_TCP_MAXRTMS (14) +#define NT_TCP_FASTOPEN (15) +#define NT_TCP_KEEPCNT (16) +#define NT_TCP_KEEPINTVL (17) +#define NT_TCP_FAIL_CONNECT_ON_ICMP_ERROR (18) +#define NT_TCP_ICMP_ERROR_INFO (19) + +#define NT_TCP_KEEPIDLE NT_TCP_KEEPALIVE + + + /* tdi receive modes */ #define NT_TDI_RECEIVE_BROADCAST (0x0004u) #define NT_TDI_RECEIVE_MULTICAST (0x0008u) |