summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-10-26 11:33:43 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-10-26 11:34:13 +0200
commit06a7d898961e2a7dd60c62529974c155c877a6a9 (patch)
treee92bbf148abf71ef01ebd8b771a59bcf8117615e /src/Makefile
parentDelete all peer allowed IPs at once (diff)
downloadwireguard-openbsd-master.tar.xz
wireguard-openbsd-master.zip
Bump keepalive timers unconditionally on sendHEADmaster
The keepalive timers -- both persistent and mandatory -- are part of the internal state machine, which needs to be cranked whether or not the packet was actually sent. A packet might be dropped by the network. Or the packet might be dropped by the local network stack. The latter case gives a hint -- which is useful for the data_sent event -- but is harmful to consider for the keepalive state machine. So, crank those timers before even calling wg_send. Incidentally, doing it this way matches exactly what Linux's send.c's wg_packet_create_data_done and Go's send.go's RoutineSequentialSender do too. Suggested-by: Kyle Evans <kevans@freebsd.org> Reported-by: Ryan Roosa <ryanroosa@gmail.com>
Diffstat (limited to 'src/Makefile')
0 files changed, 0 insertions, 0 deletions