summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-16 13:20:06 -0400
committermidipix <writeonce@midipix.org>2016-06-16 13:20:06 -0400
commita867b08c1bdfa631cd117be7d23a4ad90246d27e (patch)
tree53384ab26a1c63edfe1c8b4ac7d15a115661cc23
parent1af1372d8f795c35235036147d916763039c1e7c (diff)
downloadntapi-a867b08c1bdfa631cd117be7d23a4ad90246d27e.tar.bz2
ntapi-a867b08c1bdfa631cd117be7d23a4ad90246d27e.tar.xz
nt_socket.h: add afd sockopt definitions.
-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;