Copy TCP GRO probe from tailscale

This commit is contained in:
世界 2024-11-23 13:13:48 +08:00
parent 6ef42f019b
commit c177abb523
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 49 additions and 16 deletions

2
tun.go
View file

@ -40,8 +40,6 @@ type LinuxTUN interface {
BatchSize() int
BatchRead(buffers [][]byte, offset int, readN []int) (n int, err error)
BatchWrite(buffers [][]byte, offset int) (n int, err error)
DisableUDPGRO()
DisableTCPGRO()
TXChecksumOffload() bool
}