summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/ntapi/nt_socket.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h
index f696f68..2c4d807 100644
--- a/include/ntapi/nt_socket.h
+++ b/include/ntapi/nt_socket.h
@@ -146,6 +146,32 @@
+/* afd socket-level socket options */
+#define NT_SO_DEBUG (0x0001)
+#define NT_SO_ACCEPTCONN (0x0002)
+#define NT_SO_REUSEADDR (0x0004)
+#define NT_SO_KEEPALIVE (0x0008)
+#define NT_SO_DONTROUTE (0x0010)
+#define NT_SO_BROADCAST (0x0020)
+#define NT_SO_USELOOPBACK (0x0040)
+#define NT_SO_LINGER (0x0080)
+#define NT_SO_OOBINLINE (0x0100)
+
+#define NT_SO_SNDBUF (0x1001)
+#define NT_SO_RCVBUF (0x1002)
+#define NT_SO_SNDLOWAT (0x1003)
+#define NT_SO_RCVLOWAT (0x1004)
+#define NT_SO_SNDTIMEO (0x1005)
+#define NT_SO_RCVTIMEO (0x1006)
+#define NT_SO_ERROR (0x1007)
+#define NT_SO_TYPE (0x1008)
+
+#define NT_SO_GROUP_ID (0x2001)
+#define NT_SO_GROUP_PRIORITY (0x2002)
+#define NT_SO_MAX_MSG_SIZE (0x2003)
+
+
+
/* afd ipv6 socket options */
#define NT_IPV6_HOPOPTS 1
#define NT_IPV6_HDRINCL 2