github.com/sagernet/wireguard-go@v0.0.0-20231215174105-89dec3b2f3e8/tun/errors.go (about)

     1  package tun
     2  
     3  import (
     4  	"errors"
     5  )
     6  
     7  // ErrTooManySegments is returned by Device.Read() when segmentation
     8  // overflows the length of supplied buffers. This error should not cause
     9  // reads to cease.
    10  var ErrTooManySegments = errors.New("too many segments")