aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/cookie.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-12-11 14:25:28 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-12-11 14:25:28 +0100
commit32216b8d5dc5a6f0e3185b0d959e4db855ce7ac5 (patch)
treef1288270505e5bf5c6fed90e6dc8e59f2ab0a4dd /src/cookie.h
parentreceive: simplify ip header checking logic (diff)
downloadwireguard-linux-compat-32216b8d5dc5a6f0e3185b0d959e4db855ce7ac5.tar.xz
wireguard-linux-compat-32216b8d5dc5a6f0e3185b0d959e4db855ce7ac5.zip
global: move to consistent use of uN instead of uintN_t for kernel code
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/cookie.h')
-rw-r--r--src/cookie.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cookie.h b/src/cookie.h
index 2417cc0..4ea20e1 100644
--- a/src/cookie.h
+++ b/src/cookie.h
@@ -13,14 +13,14 @@ struct sk_buff;
struct cookie_checker {
u8 secret[NOISE_HASH_LEN];
- uint64_t secret_birthdate;
+ u64 secret_birthdate;
struct rw_semaphore secret_lock;
struct ratelimiter ratelimiter;
struct wireguard_device *device;
};
struct cookie {
- uint64_t birthdate;
+ u64 birthdate;
bool is_valid;
u8 cookie[COOKIE_LEN];
bool have_sent_mac1;