chore: add GSO support for TUN

lwip had been dropped, also cgo build will be removed
This commit is contained in:
wwqgtxx
2023-12-10 08:32:54 +08:00
parent d80fcb77f6
commit 9fc1fc4cfe
11 changed files with 96 additions and 45 deletions

View File

@@ -9,14 +9,12 @@ import (
var StackTypeMapping = map[string]TUNStack{
strings.ToLower(TunGvisor.String()): TunGvisor,
strings.ToLower(TunSystem.String()): TunSystem,
strings.ToLower(TunLWIP.String()): TunLWIP,
strings.ToLower(TunMixed.String()): TunMixed,
}
const (
TunGvisor TUNStack = iota
TunSystem
TunLWIP
TunMixed
)
@@ -64,8 +62,6 @@ func (e TUNStack) String() string {
return "gVisor"
case TunSystem:
return "System"
case TunLWIP:
return "LWIP"
case TunMixed:
return "Mixed"
default: