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 3e493e0417 wgengine: fix lazy wireguard config bug on sent packet minute+ later
A comparison operator was backwards.

The bad case went:

* device A send packet to B at t=1s
* B gets added to A's wireguard config
* B gets packet

(5 minutes pass)

* some other activity happens, causing B to expire
  to be removed from A's network map, since it's
  been over 5 minutes since sent or received activity
* device A sends packet to B at t=5m1s
* normally, B would get added back, but the old send
  time was not zero (we sent earlier!) and the time
  comparison was backwards, so we never regenerated
  the wireguard config.

This also refactors the code for legibility and moves constants up
top, with comments.
5 years ago
..
filter wgengine/filter: remove leftover debug knob that staticcheck doesn't like 5 years ago
magicsock wgengine/magicsock: remove TODO comment that's no longer applicable 5 years ago
monitor wgengine: fix macos staticcheck errors (#557) 5 years ago
packet wgengine/filter: fix IPv4 IGMP spam omission, also omit ff02::16 spam 5 years ago
router router: split off sandboxed path from router_darwin (#624) 5 years ago
tsdns ipn: fix netmap change tracking and dns map generation (#609) 5 years ago
tstun wgengine: configure wireguard peers lazily, as needed 5 years ago
winnet Move Linux client & common packages into a public repo. 6 years ago
rusage.go Move "logger" package to under types, now that we have it. 6 years ago
rusage_nowindows.go wgengine: flesh out some docs 6 years ago
rusage_windows.go Move Linux client & common packages into a public repo. 6 years ago
userspace.go wgengine: fix lazy wireguard config bug on sent packet minute+ later 5 years ago
watchdog.go wgengine: add debug knob to disable the watchdog during debugging 5 years ago
watchdog_test.go wgengine: prevent log after exit in watchdog test 6 years ago
wgengine.go wgengine/magicsock: change API to not permit disco key changes 5 years ago