From b4f98bf8a8a8f0e27b8eab8ca1d335fc8514d21f Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 19 Sep 2017 13:58:51 +0200 Subject: peer: rearrange structs Signed-off-by: Jason A. Donenfeld --- src/peer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/peer.h b/src/peer.h index edd7c06..14a8037 100644 --- a/src/peer.h +++ b/src/peer.h @@ -32,12 +32,13 @@ struct endpoint { struct wireguard_peer { struct wireguard_device *device; - struct endpoint endpoint; - struct dst_cache endpoint_cache; - rwlock_t endpoint_lock; struct crypt_queue tx_queue, rx_queue; + struct sk_buff_head staged_packet_queue; int serial_work_cpu; struct noise_keypairs keypairs; + struct endpoint endpoint; + struct dst_cache endpoint_cache; + rwlock_t endpoint_lock; struct noise_handshake handshake; u64 last_sent_handshake; struct work_struct transmit_handshake_work, clear_peer_work; @@ -49,7 +50,6 @@ struct wireguard_peer { unsigned long persistent_keepalive_interval; bool timers_enabled, timer_need_another_keepalive, sent_lastminute_handshake; struct timeval walltime_last_handshake; - struct sk_buff_head staged_packet_queue; struct kref refcount; struct rcu_head rcu; struct list_head peer_list; -- cgit v1.2.3