aboutsummaryrefslogtreecommitdiffstats
path: root/src/if_wg.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-04-20 18:03:57 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2021-04-20 18:03:57 -0600
commit8337832a85eeeda8a4c8506e44089555079177ed (patch)
tree2120511513c10c4e174b05d93fcad1374b46539c /src/if_wg.c
parentglobal: cleanup openbsd lock defines (diff)
downloadwireguard-freebsd-8337832a85eeeda8a4c8506e44089555079177ed.tar.xz
wireguard-freebsd-8337832a85eeeda8a4c8506e44089555079177ed.zip
global: update timer-type comments
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/if_wg.c')
-rw-r--r--src/if_wg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_wg.c b/src/if_wg.c
index f94a954..fee26ae 100644
--- a/src/if_wg.c
+++ b/src/if_wg.c
@@ -1270,7 +1270,7 @@ wg_handshake(struct wg_softc *sc, struct wg_packet *pkt)
struct noise_remote *remote = NULL;
int res;
bool underload = false;
- static sbintime_t wg_last_underload; /* nanouptime */
+ static sbintime_t wg_last_underload; /* sbinuptime */
underload = wg_queue_len(&sc->sc_handshake_queue) >= MAX_QUEUED_HANDSHAKES / 8;
if (underload) {