mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 21:15:39 +00:00
c2831f6614
Updates tailscale/corp#13464 Signed-off-by: David Anderson <danderson@tailscale.com>
37 lines
736 B
Go
37 lines
736 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build !linux
|
|
|
|
package magicsock
|
|
|
|
import (
|
|
"errors"
|
|
"io"
|
|
|
|
"tailscale.com/types/logger"
|
|
"tailscale.com/types/nettype"
|
|
)
|
|
|
|
func (c *Conn) listenRawDisco(family string) (io.Closer, error) {
|
|
return nil, errors.New("raw disco listening not supported on this OS")
|
|
}
|
|
|
|
func trySetSocketBuffer(pconn nettype.PacketConn, logf logger.Logf) {
|
|
portableTrySetSocketBuffer(pconn, logf)
|
|
}
|
|
|
|
func tryEnableUDPOffload(pconn nettype.PacketConn) (hasTX bool, hasRX bool) {
|
|
return false, false
|
|
}
|
|
|
|
func getGSOSizeFromControl(control []byte) (int, error) {
|
|
return 0, nil
|
|
}
|
|
|
|
func setGSOSizeInControl(control *[]byte, gso uint16) {}
|
|
|
|
const (
|
|
controlMessageSize = 0
|
|
)
|