summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6.h
diff options
context:
space:
mode:
authoryasuoka <yasuoka@openbsd.org>2012-09-17 20:01:26 +0000
committeryasuoka <yasuoka@openbsd.org>2012-09-17 20:01:26 +0000
commitcee801dc1d2af097678a07ba41db5df263c3fb45 (patch)
treefd341a9b7bfb41fecc4c91371604b6cec891e197 /sys/netinet6/in6.h
parentFix relay statistics. Found and fix by Erik Lax (erik -at- halon -dot- se) (diff)
downloadwireguard-openbsd-cee801dc1d2af097678a07ba41db5df263c3fb45.tar.xz
wireguard-openbsd-cee801dc1d2af097678a07ba41db5df263c3fb45.zip
add IPV6_RECVDSTPORT socket option, which enables us to get original
(= before divert) destination port of a UDP packet. The way to use this option is same as IP_RECVDSTPORT. from UMEZAWA Takeshi tweaks from jmc; ok henning bluhm
Diffstat (limited to 'sys/netinet6/in6.h')
-rw-r--r--sys/netinet6/in6.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
index 70a5f0858c6..9bbec7df68d 100644
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.h,v 1.58 2012/09/15 00:47:08 guenther Exp $ */
+/* $OpenBSD: in6.h,v 1.59 2012/09/17 20:01:26 yasuoka Exp $ */
/* $KAME: in6.h,v 1.83 2001/03/29 02:55:07 jinmei Exp $ */
/*
@@ -451,6 +451,8 @@ struct route_in6 {
#define IPV6_DONTFRAG 62 /* bool; disable IPv6 fragmentation */
#define IPV6_PIPEX 63 /* bool; using PIPEX */
+#define IPV6_RECVDSTPORT 64 /* bool; receive IP dst port w/dgram */
+
#define IPV6_RTABLE 0x1021 /* int; routing table, see SO_RTABLE */
/* to define items, should talk with KAME guys first, for *BSD compatibility */