diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-08 01:53:22 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-09 21:31:11 +0100 |
commit | ede883632b7ec00a58bfe061242654497d99a395 (patch) | |
tree | 45c89634ac782f1c3a0b4aaba83073d95d1975e4 /src/device.h | |
parent | f8c783d1df62700c1e4ede30f137f5013b6b729a (diff) |
device: clear all peer ephemeral keys on sleep
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device.h b/src/device.h index e8e00a0..f716242 100644 --- a/src/device.h +++ b/src/device.h @@ -14,6 +14,7 @@ #include <linux/mutex.h> #include <linux/net.h> #include <linux/padata.h> +#include <linux/notifier.h> struct wireguard_device { struct sock __rcu *sock4, *sock6; @@ -32,6 +33,7 @@ struct wireguard_device { struct list_head peer_list; struct mutex device_update_lock; struct mutex socket_update_lock; + struct notifier_block clear_peers_on_suspend; }; int device_init(void); |