2022-08-29 15:57:54 +01:00
|
|
|
// Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
//go:build !linux
|
|
|
|
|
|
|
|
package magicsock
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"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) {
|
|
|
|
return nil, errors.New("raw disco listening not supported on this OS")
|
|
|
|
}
|
2022-09-26 23:49:59 +01:00
|
|
|
|
|
|
|
func trySetSocketBuffer(pconn nettype.PacketConn, logf logger.Logf) {
|
|
|
|
portableTrySetSocketBuffer(pconn, logf)
|
|
|
|
}
|