fix a bug where TUN flag was used for TAP interface
@@ -6,3 +6,4 @@ daregod <[email protected]>
Lucus Lee <[email protected]>
Arroyo Networks, LLC <[email protected]>
Tony Lu <[email protected]>
+ajee cai <[email protected]>
@@ -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