summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-16 13:17:48 -0400
committermidipix <writeonce@midipix.org>2016-06-16 13:17:48 -0400
commit1af1372d8f795c35235036147d916763039c1e7c (patch)
treec4ba1cf8f1158abcf60bae5ab987d0f86d4c1a8d
parent0dbb409e399efe3ff884344365c2c6b7ff2f5b6a (diff)
downloadntapi-1af1372d8f795c35235036147d916763039c1e7c.tar.bz2
ntapi-1af1372d8f795c35235036147d916763039c1e7c.tar.xz
nt_socket.h: add ipv6 sockopt constants.
-rw-r--r--include/ntapi/nt_socket.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/ntapi/nt_socket.h b/include/ntapi/nt_socket.h
index 9479aa4..7e433b9 100644
--- a/include/ntapi/nt_socket.h
+++ b/include/ntapi/nt_socket.h
@@ -140,6 +140,37 @@
+/* afd ipv6 socket options */
+#define NT_IPV6_HOPOPTS 1
+#define NT_IPV6_HDRINCL 2
+#define NT_IPV6_UNICAST_HOPS 4
+#define NT_IPV6_MULTICAST_IF 9
+#define NT_IPV6_MULTICAST_HOPS 10
+#define NT_IPV6_MULTICAST_LOOP 11
+#define NT_IPV6_ADD_MEMBERSHIP 12
+#define NT_IPV6_DROP_MEMBERSHIP 13
+#define NT_IPV6_DONTFRAG 14
+#define NT_IPV6_PKTINFO 19
+#define NT_IPV6_HOPLIMIT 21
+#define NT_IPV6_PROTECTION_LEVEL 23
+#define NT_IPV6_RECVIF 24
+#define NT_IPV6_RECVDSTADDR 25
+#define NT_IPV6_CHECKSUM 26
+#define NT_IPV6_V6ONLY 27
+#define NT_IPV6_IFLIST 28
+#define NT_IPV6_ADD_IFLIST 29
+#define NT_IPV6_DEL_IFLIST 30
+#define NT_IPV6_UNICAST_IF 31
+#define NT_IPV6_RTHDR 32
+#define NT_IPV6_RECVRTHDR 38
+#define NT_IPV6_TCLASS 39
+#define NT_IPV6_RECVTCLASS 40
+
+#define NT_IPV6_JOIN_GROUP IPV6_ADD_MEMBERSHIP
+#define NT_IPV6_LEAVE_GROUP IPV6_DROP_MEMBERSHIP
+
+
+
/* tdi receive modes */
#define NT_TDI_RECEIVE_BROADCAST (0x0004u)
#define NT_TDI_RECEIVE_MULTICAST (0x0008u)