David Anderson
bd60a750e8
wgengine/magicsock: fix packet spraying test to (mostly) pass.
...
It previously passed incorrectly due to bugs. With those fixed,
it becomes flaky for 2 reasons. One of them is the wireguard handshake
race, which can eat the 1st sprayed packet and prevent roamAddr
discovery. This change fixes that failure, by spreading the test
traffic out enough that additional spraying occurs.
Signed-Off-By: David Anderson <danderson@tailscale.com>
6 years ago
David Crawshaw
a65b2a0efd
magicsock: add some DERP tests
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
6 years ago
David Crawshaw
caec2c7e8b
magicsock: test sequence of pings
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
6 years ago
David Crawshaw
9f584414d9
magicsock: simple ping test via magicsock
...
Passes `go test -count=20 -race ./wgengine/magicsock`
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
6 years ago
David Crawshaw
75e62d318f
magicsock: use local STUN server in tests
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
6 years ago
Brad Fitzpatrick
b27d4c017a
magicsock, wgengine, ipn, controlclient: plumb regular netchecks to map poll
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
6 years ago
Brad Fitzpatrick
724c37fb41
wgengine/magicsock: start tracking nearest DERP node
6 years ago
Brad Fitzpatrick
d298d5b1f8
wgengine/magicsock: support multiple derp servers, and not just for handshakes
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
6 years ago
Brad Fitzpatrick
e06ca40650
wgengine, magicsock, derp: misc cleanups, docs
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
6 years ago
Earl Lee
a8d8b8719a
Move Linux client & common packages into a public repo.
6 years ago