From 56d7fa05b110d2352bbd8ddb2077602556e3e53d Mon Sep 17 00:00:00 2001 From: ajee cai Date: Thu, 31 Aug 2017 23:45:14 +0800 Subject: [PATCH] TAP interface doesn't work as expected The flags should be set to TAP instead of TUN, then resolve my issue at https://github.com/songgao/water/issues/28. --- syscalls_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syscalls_linux.go b/syscalls_linux.go index 28ad259..27df21c 100644 --- a/syscalls_linux.go +++ b/syscalls_linux.go @@ -37,7 +37,7 @@ func newTAP(config Config) (ifce *Interface, err error) { } var flags uint16 - flags = cIFF_TUN | cIFF_NO_PI + flags = cIFF_TAP | cIFF_NO_PI if config.PlatformSpecificParams.MultiQueue { flags |= cIFF_MULTI_QUEUE }