summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2018-02-20 03:43:07 +0000
committerdlg <dlg@openbsd.org>2018-02-20 03:43:07 +0000
commitc9ef95c8a794d4b80ce15c9f7ef5417be68aa293 (patch)
tree9ff34d5ab4b315d07cb550f92ed0a5c265b4db05
parentadd support for setting the tunnel df bit. (diff)
downloadwireguard-openbsd-c9ef95c8a794d4b80ce15c9f7ef5417be68aa293.tar.xz
wireguard-openbsd-c9ef95c8a794d4b80ce15c9f7ef5417be68aa293.zip
add ioctls to toggle partitioning a vnetid into a netid and flowid
this maps to key entropy in cisco tunnel terminology, and will be used in gre and egre to interoperate with their tunnels.
-rw-r--r--sys/sys/sockio.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sys/sockio.h b/sys/sys/sockio.h
index 9aa4fd25724..b0ec48ae57c 100644
--- a/sys/sys/sockio.h
+++ b/sys/sys/sockio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sockio.h,v 1.74 2018/02/19 00:21:31 dlg Exp $ */
+/* $OpenBSD: sockio.h,v 1.75 2018/02/20 03:43:07 dlg Exp $ */
/* $NetBSD: sockio.h,v 1.5 1995/08/23 00:40:47 thorpej Exp $ */
/*-
@@ -194,6 +194,9 @@
#define SIOCSLIFPHYDF _IOW('i', 193, struct ifreq) /* set tunnel df/nodf */
#define SIOCGLIFPHYDF _IOWR('i', 194, struct ifreq) /* set tunnel df/nodf */
+#define SIOCSVNETFLOWID _IOW('i', 195, struct ifreq) /* set vnet flowid */
+#define SIOCGVNETFLOWID _IOWR('i', 196, struct ifreq) /* get vnet flowid */
+
#define SIOCSVH _IOWR('i', 245, struct ifreq) /* set carp param */
#define SIOCGVH _IOWR('i', 246, struct ifreq) /* get carp param */