summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/ntapi/nt_socket.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h
index 7e433b9..c6f47b9 100644
--- a/include/ntapi/nt_socket.h
+++ b/include/ntapi/nt_socket.h
@@ -219,6 +219,11 @@
#define NT_AFD_IOCTL_GET_CONTEXT (0x12043u)
#define NT_AFD_IOCTL_SET_INFO (0x1203bu)
#define NT_AFD_IOCTL_GET_INFO (0x1207bu)
+#define NT_AFD_IOCTL_SOCKOPT (0x120bfu)
+
+/* afd sockopt mode bits */
+#define NT_AFD_SOCKOPT_SET (0x01u)
+#define NT_AFD_SOCKOPT_GET (0x02u)
/* afd poll socket info bits */
#define NT_AFD_POLL_RECEIVE (0x01u)
@@ -375,6 +380,16 @@ typedef struct _nt_afd_recv_info {
} nt_afd_recv_info;
+typedef struct _nt_afd_sockopt_info {
+ uint32_t mode;
+ uint32_t level;
+ uint32_t optname;
+ uint32_t ding;
+ const void * optval;
+ size_t optlen;
+} nt_afd_sockopt_info;
+
+
typedef struct _nt_afd_poll_socket_info {
void * hsocket;
uint32_t events;