From 0636c1c929da3b58d3a34262fbc6567f86bfb594 Mon Sep 17 00:00:00 2001 From: liornm Date: Wed, 19 May 2021 17:52:01 +0300 Subject: Allow use of IFF_ONE_QUEUE Before fix, use of this flag causes an error. It affects applications like OpenVPN which sets this flag for legacy reasons. According to linux/if_tun.h "This flag has no real effect". --- pkg/abi/linux/ioctl_tun.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/abi/linux') diff --git a/pkg/abi/linux/ioctl_tun.go b/pkg/abi/linux/ioctl_tun.go index c59c9c136..ea4fdca0f 100644 --- a/pkg/abi/linux/ioctl_tun.go +++ b/pkg/abi/linux/ioctl_tun.go @@ -26,4 +26,7 @@ const ( IFF_TAP = 0x0002 IFF_NO_PI = 0x1000 IFF_NOFILTER = 0x1000 + + // According to linux/if_tun.h "This flag has no real effect" + IFF_ONE_QUEUE = 0x2000 ) -- cgit v1.2.3