Add optional LWIP stack support

This commit is contained in:
世界 2022-08-07 17:15:29 +08:00
parent a937ff2d8d
commit 0fd822f913
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
18 changed files with 300 additions and 57 deletions

15
lwip_stub.go Normal file
View file

@ -0,0 +1,15 @@
//go:build !with_lwip
package tun
import "context"
func NewLWIP(
ctx context.Context,
tun Tun,
tunMtu uint32,
udpTimeout int64,
handler Handler,
) (Stack, error) {
return nil, ErrLWIPNotIncluded
}