2023-01-27 21:37:20 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2022-08-29 15:57:54 +01:00
|
|
|
|
|
|
|
//go:build !linux
|
|
|
|
|
|
|
|
package magicsock
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
2024-09-16 16:27:04 +01:00
|
|
|
"fmt"
|
2022-08-29 15:57:54 +01:00
|
|
|
"io"
|
2022-09-26 23:49:59 +01:00
|
|
|
|
|
|
|
"tailscale.com/types/logger"
|
|
|
|
"tailscale.com/types/nettype"
|
2022-08-29 15:57:54 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func (c *Conn) listenRawDisco(family string) (io.Closer, error) {
|
2024-09-16 16:27:04 +01:00
|
|
|
return nil, fmt.Errorf("raw disco listening not supported on this OS: %w", errors.ErrUnsupported)
|
2022-08-29 15:57:54 +01:00
|
|
|
}
|
2022-09-26 23:49:59 +01:00
|
|
|
|
|
|
|
func trySetSocketBuffer(pconn nettype.PacketConn, logf logger.Logf) {
|
|
|
|
portableTrySetSocketBuffer(pconn, logf)
|
|
|
|
}
|
2023-04-05 00:32:16 +01:00
|
|
|
|
|
|
|
const (
|
|
|
|
controlMessageSize = 0
|
|
|
|
)
|