summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-09-19 13:58:51 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-09-19 13:58:51 +0200
commit3838eed21980566046a20188d5d114febf3b8c6f (patch)
tree559d8239287376f0020a4aa97a78d2496679d9e4
parentdevice: properly arrange structs (diff)
downloadwireguard-monolithic-historical-3838eed21980566046a20188d5d114febf3b8c6f.tar.xz
wireguard-monolithic-historical-3838eed21980566046a20188d5d114febf3b8c6f.zip
peer: rearrange structs
-rw-r--r--src/peer.h8
1 files changed, 4 insertions, 4 deletions
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;