Fix: tun issue with virtio_net_hdr (#254)

This commit is contained in:
xjasonlyu
2023-05-26 16:23:01 +08:00
parent 07a6a9f096
commit 46c04db29f
2 changed files with 25 additions and 2 deletions

View File

@@ -1,8 +1,7 @@
//go:build unix
//go:build unix && !linux
package tun
//nolint:all
const (
offset = 4 /* 4 bytes TUN_PI */
defaultMTU = 1500