mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-05 21:07:43 +03:00
Copy UDP GSO support from tailscale
This commit is contained in:
parent
55a70eb1ef
commit
8355396af6
11 changed files with 1313 additions and 820 deletions
10
tun_offload_errors.go
Normal file
10
tun_offload_errors.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package tun
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
// ErrTooManySegments is returned by Device.Read() when segmentation
|
||||
// overflows the length of supplied buffers. This error should not cause
|
||||
// reads to cease.
|
||||
var ErrTooManySegments = errors.New("too many segments")
|
Loading…
Add table
Add a link
Reference in a new issue