summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty
diff options
context:
space:
mode:
author Patrick Mackinlay <pmackinlay@hotmail.com>2023-04-25 14:45:43 +0700
committer Patrick Mackinlay <pmackinlay@hotmail.com>2023-04-25 14:46:24 +0700
commit5b567d4a37084065174316671fc33241b67f40bc (patch)
tree1046a80238165216076572df8c4599ff2785d0ca /3rdparty
parent4bc6a8d0e65bc7004e113d6938b8012cc73a9600 (diff)
taptun: fix adapter detection on windows for newer versions of taptun driver
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/tap-windows6/tap-windows.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/3rdparty/tap-windows6/tap-windows.h b/3rdparty/tap-windows6/tap-windows.h
index 99715343df7..42231533741 100644
--- a/3rdparty/tap-windows6/tap-windows.h
+++ b/3rdparty/tap-windows6/tap-windows.h
@@ -51,6 +51,13 @@
/* obsoletes TAP_WIN_IOCTL_CONFIG_POINT_TO_POINT */
#define TAP_WIN_IOCTL_CONFIG_TUN TAP_WIN_CONTROL_CODE (10, METHOD_BUFFERED)
+/* Control whether 802.1Q headers are added for priority */
+#define TAP_WIN_IOCTL_PRIORITY_BEHAVIOR TAP_WIN_CONTROL_CODE (11, METHOD_BUFFERED)
+#define TAP_PRIORITY_BEHAVIOR_NOPRIORITY 0
+#define TAP_PRIORITY_BEHAVIOR_ENABLED 1
+#define TAP_PRIORITY_BEHAVIOR_ADDALWAYS 2
+#define TAP_PRIORITY_BEHAVIOR_MAX 2
+
/*
* =================
* Registry keys