diff options
author | midipix <writeonce@midipix.org> | 2024-07-07 13:52:22 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-07-07 13:53:36 +0000 |
commit | 6ebb48a464fcd480f12e85fc442bec5317a011a6 (patch) | |
tree | 1c4e304dd467cb8e33520cf319197be169a68a38 | |
parent | 3d0ae202d75209ab7310948bfd58ccadc5ccf0f6 (diff) | |
download | ntapi-6ebb48a464fcd480f12e85fc442bec5317a011a6.tar.bz2 ntapi-6ebb48a464fcd480f12e85fc442bec5317a011a6.tar.xz |
nt_socket.h: added definitions for afd tcp socket options.
-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) |