2023-01-27 13:37:20 -08:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2021-03-02 21:45:40 -08:00
|
|
|
|
2021-08-05 15:42:39 -07:00
|
|
|
//go:build (!linux && !freebsd && !windows && !darwin) || android
|
2021-03-02 21:45:40 -08:00
|
|
|
|
2023-04-18 14:26:58 -07:00
|
|
|
package netmon
|
2021-03-02 21:45:40 -08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"tailscale.com/types/logger"
|
|
|
|
)
|
|
|
|
|
2023-04-18 14:26:58 -07:00
|
|
|
func newOSMon(logf logger.Logf, m *Monitor) (osMon, error) {
|
2021-03-31 16:26:11 -07:00
|
|
|
return newPollingMon(logf, m)
|
2021-03-02 21:45:40 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// unspecifiedMessage is a minimal message implementation that should not
|
|
|
|
// be ignored. In general, OS-specific implementations should use better
|
|
|
|
// types and avoid this if they can.
|
|
|
|
type unspecifiedMessage struct{}
|
|
|
|
|
|
|
|
func (unspecifiedMessage) ignore() bool { return false }
|