tun_no_prefix.go 360 B

12345678910
  1. //go:build (!darwin && !ios && !freebsd && !openbsd && !netbsd) || e2e_testing
  2. package overlay
  3. // StampTunPrefix is a no-op on platforms whose tun devices have no
  4. // protocol-family marker. WireBuffer only invokes it when its prefixLen
  5. // is non-zero, so this should never be reached on these platforms.
  6. func StampTunPrefix(buf []byte) error {
  7. return nil
  8. }