diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-23 19:02:18 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-23 19:12:51 +0200 |
commit | 68441fb05412baebbd17f407bf984ad7a81af630 (patch) | |
tree | 71fefcc3710232dea912be362cb83f383720edc0 /src/noise.h | |
parent | global: use ktime boottime instead of jiffies (diff) | |
download | wireguard-monolithic-historical-68441fb05412baebbd17f407bf984ad7a81af630.tar.xz wireguard-monolithic-historical-68441fb05412baebbd17f407bf984ad7a81af630.zip |
global: use fast boottime instead of normal boottime
Generally if we're inaccurate by a few nanoseconds, it doesn't matter.
Diffstat (limited to 'src/noise.h')
-rw-r--r-- | src/noise.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/noise.h b/src/noise.h index ec1a59d..b8d18b9 100644 --- a/src/noise.h +++ b/src/noise.h @@ -31,7 +31,7 @@ union noise_counter { struct noise_symmetric_key { u8 key[NOISE_SYMMETRIC_KEY_LEN]; union noise_counter counter; - ktime_t birthdate; + u64 birthdate; bool is_valid; }; @@ -72,7 +72,7 @@ struct noise_handshake { struct index_hashtable_entry entry; enum noise_handshake_state state; - ktime_t last_initiation_consumption; + u64 last_initiation_consumption; struct noise_static_identity *static_identity; |