You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/wgengine
Brad Fitzpatrick d86081f353 wgengine/magicsock: add new discoInfo type for DiscoKey state, move some fields
As more prep for removing the false assumption that you're able to
map from DiscoKey to a single peer, move the lastPingFrom and lastPingTime
fields from the endpoint type to a new discoInfo type, effectively upgrading
the old sharedDiscoKey map (which only held a *[32]byte nacl precomputed key
as its value) to discoInfo which then includes that naclbox key.

Then start plumbing it into handlePing in prep for removing the need
for handlePing to take an endpoint parameter.

Updates #3088

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
4 years ago
..
bench all: fix spelling mistakes 4 years ago
filter cmd/cloner: add Clone context to regen struct assignments 4 years ago
magicsock wgengine/magicsock: add new discoInfo type for DiscoKey state, move some fields 4 years ago
monitor wgengine/monitor: ignore ipsec link monitor events on iOS/macOS 4 years ago
netstack wgengine/netstack: include DNS.ExtraRecords in DNSMap 4 years ago
router wgengine/router: ignore Linux ip route error adding dup route 4 years ago
wgcfg cmd/cloner: add Clone context to regen struct assignments 4 years ago
wglog wgengine/wglog: Fix docstring on wireguardGoString to match args 4 years ago
winnet wgengine/winnet: don't build on non-windows 5 years ago
mem_ios.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 5 years ago
pendopen.go wgengine/magicsock: start removing endpointForDiscoKey 4 years ago
userspace.go magicsock: if STUN failed to send before, rebind before STUNning again. 4 years ago
userspace_ext_test.go go.mod: upgrade wireguard-windows, de-fork wireguard-go 5 years ago
userspace_test.go all: close fake userspace engines when tests complete 4 years ago
watchdog.go wgengine: randomize client port if netmap says to 5 years ago
watchdog_test.go all: close fake userspace engines when tests complete 4 years ago
wgengine.go wgengine: randomize client port if netmap says to 5 years ago