tailscale/net/portmapper
Andrew Dunham fa3639783c net/portmapper: check returned epoch from PMP and PCP protocols
If the epoch that we see during a Probe is less than the existing epoch,
it means that the gateway has either restarted or reset its
configuration, and an existing mapping is no longer valid. Reset any
saved mapping(s) if we detect this case so that a future
createOrGetMapping will not attempt to re-use it.

Updates #10597

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Ie3cddaf625cb94a29885f7a1eeea25dbf6b97b47
2024-01-03 14:17:50 -05:00
..
disabled_stubs.go net/portmapper: handle multiple UPnP discovery responses 2023-12-18 16:02:46 -05:00
igd_test.go all: cleanup unused code, part 1 (#10661) 2023-12-20 14:50:30 -08: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 net/portmapper: add logs about obtained mapping(s) 2023-12-20 17:19:08 -05:00
portmapper.go net/portmapper: check returned epoch from PMP and PCP protocols 2024-01-03 14:17:50 -05:00
select_test.go net/portmapper: be smarter about selecting a UPnP device 2023-12-13 16:32:29 -05:00
upnp_test.go net/portmapper: handle multiple UPnP discovery responses 2023-12-18 16:02:46 -05:00
upnp.go net/portmapper: add logs about obtained mapping(s) 2023-12-20 17:19:08 -05:00