github.com/koomox/wireguard-go@v0.0.0-20230722134753-17a50b2f22a3/tun/errors.go (about) 1 package tun 2 3 import ( 4 "errors" 5 ) 6 7 var ( 8 // ErrTooManySegments is returned by Device.Read() when segmentation 9 // overflows the length of supplied buffers. This error should not cause 10 // reads to cease. 11 ErrTooManySegments = errors.New("too many segments") 12 )