aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/device.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-12-08 01:53:22 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-12-09 21:31:11 +0100
commit180982ac43422197028cc5740e63a6d0eccbc095 (patch)
treeeba186dbe15ee9e56843bb36ca051197fb4217c3 /src/device.h
parentdata: reset tc when resetting skb (diff)
downloadwireguard-monolithic-historical-180982ac43422197028cc5740e63a6d0eccbc095.tar.xz
wireguard-monolithic-historical-180982ac43422197028cc5740e63a6d0eccbc095.zip
device: clear all peer ephemeral keys on sleep
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h2
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);