tailscale/net/portmapper
Andrew Dunham d9ae7d670e net/portmapper: add clientmetric for UPnP error codes
This should allow us to gather a bit more information about errors that
we encounter when creating UPnP mappings. Since we don't have a
"LabelMap" construction for clientmetrics, do what sockstats does and
lazily register a new metric when we see a new code.

Updates #9343

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Ibb5aadd6138beb58721f98123debcc7273b611ba
2023-09-18 18:47:24 -04:00
..
disabled_stubs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
igd_test.go net/portmapper: fall back to permanent UPnP leases if necessary 2023-09-12 11:16:45 -04:00
pcp_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
pcp.go all: update tools that manage copyright headers 2023-01-27 15:36:29 -08: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 control/controlknobs, all: add plumbed Knobs type, not global variables 2023-09-11 12:44:03 -07:00
portmapper.go net/portmapper: add clientmetric for UPnP error codes 2023-09-18 18:47:24 -04:00
upnp_test.go net/portmapper: fall back to permanent UPnP leases if necessary 2023-09-12 11:16:45 -04:00
upnp.go net/portmapper: add clientmetric for UPnP error codes 2023-09-18 18:47:24 -04:00