Add optional LWIP stack support
This commit is contained in:
parent
a937ff2d8d
commit
0fd822f913
18 changed files with 300 additions and 57 deletions
15
lwip_stub.go
Normal file
15
lwip_stub.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue