Merge pull request #30 from ajeecai/master

fix a bug where TUN flag was used for TAP interface
This commit is contained in:
Song Gao 2017-09-01 08:43:10 -07:00 committed by GitHub
commit 352f2426f8
2 changed files with 2 additions and 1 deletions

View file

@ -6,3 +6,4 @@ daregod <daregod@yandex.ru>
Lucus Lee <lixin9311@gmail.com>
Arroyo Networks, LLC <open.source@arroyonetworks.com>
Tony Lu <tonyluj@gmail.com>
ajee cai <ajee.cai@gmail.com>

View file

@ -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
}