tailscale/net/portmapper
Denton Gentry 5302e4be96 net/portmapper: only print PCP/PMP if VerboseLogs
Make UPnP, NAT-PMP, and PCP packet reception logs be [v1] so
they will never appear on stdout and instead only go to logtail.

```
$ tailscale netcheck
2021/10/15 22:50:31 portmap: Got PMP response; IP: w.x.y.z, epoch: 1012707
2021/10/15 22:50:31 portmap: Got PCP response: epoch: 1012707

Report:
        * UDP: true
        * IPv4: yes, w.x.y.z:1511
        * IPv6: no
        * MappingVariesByDestIP: true
        * HairPinning: false
        * PortMapping: NAT-PMP, PCP
        * Nearest DERP: San Francisco
        * DERP latency:
                - sfo: 5.9ms   (San Francisco)
                - sea: 24ms    (Seattle)
                - dfw: 45ms    (Dallas)
                - ord: 53.7ms  (Chicago)
                - nyc: 74.1ms  (New York City)
                - tok: 111.1ms (Tokyo)
                - lhr: 139.4ms (London)
                - syd: 152.7ms (Sydney)
                - fra: 153.1ms (Frankfurt)
                - sin: 182.1ms (Singapore)
                - sao: 190.1ms (S_o Paulo)
                - blr: 218.6ms (Bangalore)
```

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-10-28 10:18:51 -07:00
..
disabled_stubs.go all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
igd_test.go net/portmapper: fix t.Log-after-test-done race in tests 2021-08-18 14:39:45 -07:00
pcp_test.go net/portmapper: add PCP integration test 2021-08-10 15:14:46 -07:00
pcp.go net/portmapper: actually test something in TestProbeIntegration 2021-08-09 19:49:02 -07:00
portmapper_test.go net/portmapper: add PCP integration test 2021-08-10 15:14:46 -07:00
portmapper.go net/portmapper: only print PCP/PMP if VerboseLogs 2021-10-28 10:18:51 -07:00
upnp_test.go all: update tests to use tstest.MemLogger 2021-09-07 20:06:15 -07:00
upnp.go net/portmapper: log upnp information 2021-08-10 22:45:00 -07:00