netmon_polling.go 578 B

123456789101112131415161718192021
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. //go:build (!linux && !freebsd && !windows && !darwin) || android
  4. package netmon
  5. import (
  6. "tailscale.com/types/logger"
  7. )
  8. func newOSMon(logf logger.Logf, m *Monitor) (osMon, error) {
  9. return newPollingMon(logf, m)
  10. }
  11. // unspecifiedMessage is a minimal message implementation that should not
  12. // be ignored. In general, OS-specific implementations should use better
  13. // types and avoid this if they can.
  14. type unspecifiedMessage struct{}
  15. func (unspecifiedMessage) ignore() bool { return false }