diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-08 20:30:57 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-08 20:30:57 +0200 |
commit | 8a4a28ebedde10ff6345df6f954299d2247aa19f (patch) | |
tree | eef56fabe1162faaf1d7a9aebafe43b2254417a6 | |
parent | fcd889b205f41901b822f768f461e3974f48b5f2 (diff) |
timers: rename *authorized* functions to *authenticated*
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/receive.c | 4 | ||||
-rw-r--r-- | src/timers.c | 2 | ||||
-rw-r--r-- | src/timers.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/receive.c b/src/receive.c index db19527..2323b97 100644 --- a/src/receive.c +++ b/src/receive.c @@ -151,7 +151,7 @@ static void receive_handshake_packet(struct wireguard_device *wg, void *data, si BUG_ON(!peer); rx_stats(peer, len); - timers_any_authorized_packet_received(peer); + timers_any_authenticated_packet_received(peer); update_latest_addr(peer, skb); peer_put(peer); } @@ -258,7 +258,7 @@ static void receive_data_packet(struct sk_buff *skb, struct wireguard_peer *peer packet_processed: dev_kfree_skb(skb); continue_processing: - timers_any_authorized_packet_received(peer); + timers_any_authenticated_packet_received(peer); socket_set_peer_addr(peer, addr); peer_put(peer); } diff --git a/src/timers.c b/src/timers.c index 01933a8..edc6da3 100644 --- a/src/timers.c +++ b/src/timers.c @@ -102,7 +102,7 @@ void timers_data_received(struct wireguard_peer *peer) peer->timer_need_another_keepalive = true; } -void timers_any_authorized_packet_received(struct wireguard_peer *peer) +void timers_any_authenticated_packet_received(struct wireguard_peer *peer) { if (likely(peer->timer_new_handshake.data)) del_timer(&peer->timer_new_handshake); diff --git a/src/timers.h b/src/timers.h index e8acba3..69bd10f 100644 --- a/src/timers.h +++ b/src/timers.h @@ -11,7 +11,7 @@ void timers_uninit_peer_wait(struct wireguard_peer *peer); void timers_data_sent(struct wireguard_peer *peer); void timers_data_received(struct wireguard_peer *peer); -void timers_any_authorized_packet_received(struct wireguard_peer *peer); +void timers_any_authenticated_packet_received(struct wireguard_peer *peer); void timers_handshake_initiated(struct wireguard_peer *peer); void timers_handshake_complete(struct wireguard_peer *peer); void timers_ephemeral_key_created(struct wireguard_peer *peer); |