tailscale/net/portmapper
Brad Fitzpatrick 3672f29a4e net/netns, net/dns/resolver, etc: make netmon required in most places
The goal is to move more network state accessors to netmon.Monitor
where they can be cheaper/cached. But first (this change and others)
we need to make sure the one netmon.Monitor is plumbed everywhere.

Some notable bits:

* tsdial.NewDialer is added, taking a now-required netmon

* because a tsdial.Dialer always has a netmon, anything taking both
  a Dialer and a NetMon is now redundant; take only the Dialer and
  get the NetMon from that if/when needed.

* netmon.NewStatic is added, primarily for tests

Updates tailscale/corp#10910
Updates tailscale/corp#18960
Updates #7967
Updates #3299

Change-Id: I877f9cb87618c4eb037cee098241d18da9c01691
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-04-27 12:17:45 -07:00
..
disabled_stubs.go net/portmapper: handle multiple UPnP discovery responses 2023-12-18 16:02:46 -05:00
igd_test.go net/netns, net/dns/resolver, etc: make netmon required in most places 2024-04-27 12:17:45 -07:00
legacy_upnp.go net/portmapper: support legacy "urn:dslforum-org" portmapping services 2024-01-23 21:29:29 -05:00
pcp_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pcp.go net/portmapper: check returned epoch from PMP and PCP protocols 2024-01-03 14:17:50 -05:00
pcpresultcode_string.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pmpresultcode_string.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
portmapper_test.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
portmapper.go net/netns, net/dns/resolver, etc: make netmon required in most places 2024-04-27 12:17:45 -07:00
select_test.go net/portmapper: be smarter about selecting a UPnP device 2023-12-13 16:32:29 -05:00
upnp_test.go all: use Go 1.22 range-over-int 2024-04-16 15:32:38 -07:00
upnp.go net/portmapper: support legacy "urn:dslforum-org" portmapping services 2024-01-23 21:29:29 -05:00