2023-01-27 21:37:20 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2021-03-03 05:45:40 +00:00
|
|
|
|
2021-08-05 22:42:39 +00:00
|
|
|
//go:build (!linux && !freebsd && !windows && !darwin) || android
|
2021-03-03 05:45:40 +00:00
|
|
|
|
2023-04-18 21:26:58 +00:00
|
|
|
package netmon
|
2021-03-03 05:45:40 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"tailscale.com/types/logger"
|
|
|
|
)
|
|
|
|
|
2023-04-18 21:26:58 +00:00
|
|
|
func newOSMon(logf logger.Logf, m *Monitor) (osMon, error) {
|
2021-03-31 23:26:11 +00:00
|
|
|
return newPollingMon(logf, m)
|
2021-03-03 05:45:40 +00: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 }
|