mirror of
https://github.com/slackhq/nebula.git
synced 2026-05-16 04:47:38 +02:00
11 lines
265 B
Go
11 lines
265 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package wire
|
|
|
|
// PerSegment invokes fn once per segment of pkt.
|
|
// This is a stub implementation that does not actually support segmentation
|
|
func (t *TunPacket) PerSegment(fn func(seg []byte) error) error {
|
|
return fn(t.Bytes)
|
|
}
|