2023-01-27 13:37:20 -08:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2022-08-29 10:57:54 -04:00
|
|
|
|
2025-09-30 14:47:40 -07:00
|
|
|
//go:build !linux || ts_omit_listenrawdisco
|
2022-08-29 10:57:54 -04:00
|
|
|
|
|
|
|
|
package magicsock
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"errors"
|
2024-09-16 11:27:04 -04:00
|
|
|
"fmt"
|
2022-08-29 10:57:54 -04:00
|
|
|
"io"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (c *Conn) listenRawDisco(family string) (io.Closer, error) {
|
2024-09-16 11:27:04 -04:00
|
|
|
return nil, fmt.Errorf("raw disco listening not supported on this OS: %w", errors.ErrUnsupported)
|
2022-08-29 10:57:54 -04:00
|
|
|
}
|