summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2018-11-12 23:32:42 +0000
committerdlg <dlg@openbsd.org>2018-11-12 23:32:42 +0000
commit3b3c5da9d8559a71efa917a845de3143b76db302 (patch)
tree3ea190820778eb5231b448d6a11c815d7a3e5534
parenttweak previous; (diff)
downloadwireguard-openbsd-3b3c5da9d8559a71efa917a845de3143b76db302.tar.xz
wireguard-openbsd-3b3c5da9d8559a71efa917a845de3143b76db302.zip
add ioctl commands for the setting of prio fields in tx headers
this will be used by encap interfaces where their headers have fields to store a priority, eg, the dot1p bit of vlan/svlan headers, or the ip tos or tclass field int the outer ip header in gre, gif, etherip, and vxlan. ok claudio@
-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 207aceaccdf..f9ad81f0b55 100644
--- a/sys/sys/sockio.h
+++ b/sys/sys/sockio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sockio.h,v 1.76 2018/05/30 18:15:47 sthen Exp $ */
+/* $OpenBSD: sockio.h,v 1.77 2018/11/12 23:32:42 dlg Exp $ */
/* $NetBSD: sockio.h,v 1.5 1995/08/23 00:40:47 thorpej Exp $ */
/*-
@@ -198,6 +198,9 @@
#define SIOCSVNETFLOWID _IOW('i', 195, struct ifreq) /* set vnet flowid */
#define SIOCGVNETFLOWID _IOWR('i', 196, struct ifreq) /* get vnet flowid */
+#define SIOCSTXHPRIO _IOW('i', 197, struct ifreq) /* set tx hdr prio */
+#define SIOCGTXHPRIO _IOWR('i', 198, struct ifreq) /* get tx hdr prio */
+
#define SIOCSVH _IOWR('i', 245, struct ifreq) /* set carp param */
#define SIOCGVH _IOWR('i', 246, struct ifreq) /* get carp param */