aboutsummaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wireguard.h')
-rw-r--r--src/wireguard.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wireguard.h b/src/wireguard.h
index 5b64457..7853ba6 100644
--- a/src/wireguard.h
+++ b/src/wireguard.h
@@ -149,7 +149,8 @@ struct wg_session {
uint32_t s_local_id; /* Static */
uint32_t s_remote_id; /* Static */
struct wg_peer *s_peer; /* Static */
- struct timespec s_created;
+ struct timespec s_created; /* Static */
+ struct refcnt s_refcnt; /* Atomic */
/* All protected by s_lock */
struct rwlock s_lock;
@@ -178,6 +179,7 @@ struct wg_peer {
void *p_arg;
struct wg_device *p_device;
struct wg_pubkey p_remote;
+ struct refcnt p_refcnt;
SLIST_ENTRY(wg_peer) p_entry;
/* All protected by p_lock */