wire_generic.go 265 B

12345678910
  1. //go:build !linux
  2. // +build !linux
  3. package wire
  4. // PerSegment invokes fn once per segment of pkt.
  5. // This is a stub implementation that does not actually support segmentation
  6. func (t *TunPacket) PerSegment(fn func(seg []byte) error) error {
  7. return fn(t.Bytes)
  8. }