github.com/GFW-knocker/wireguard@v1.0.1/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 )