summaryrefslogtreecommitdiffhomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-09-22 03:51:39 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-09-24 23:10:15 +0200
commit18e49c76cfe5efe9c10a5ed2f59f694c98c30390 (patch)
treebc5813d1f9d3d16853b5491980ce960737ba747f /src/device.c
parent7895086b4f2497cb8a2e75d24d4a40b6d0b018b5 (diff)
timers: convert to use netif_running
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c
index eb1d59c..1fa7784 100644
--- a/src/device.c
+++ b/src/device.c
@@ -56,7 +56,6 @@ static int open(struct net_device *dev)
if (ret < 0)
return ret;
peer_for_each (wg, peer, temp, true) {
- timers_init_peer(peer);
packet_send_staged_packets(peer);
if (peer->persistent_keepalive_interval)
packet_send_keepalive(peer);
@@ -96,7 +95,7 @@ static int stop(struct net_device *dev)
struct wireguard_peer *peer, *temp;
peer_for_each (wg, peer, temp, true) {
skb_queue_purge(&peer->staged_packet_queue);
- timers_uninit_peer(peer);
+ timers_stop(peer);
noise_handshake_clear(&peer->handshake);
noise_keypairs_clear(&peer->keypairs);
}