summaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-10-02 02:46:59 +0100
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-10-02 02:46:59 +0100
commit0a5977e6b12d5c6b9f19812d5e860c5f9eab4de4 (patch)
tree21aacd4bbc1ca31effd12c46441f0d048f3d69ce /src/wireguard.h
parentBugfixes (diff)
downloadwireguard-openbsd-0a5977e6b12d5c6b9f19812d5e860c5f9eab4de4.tar.xz
wireguard-openbsd-0a5977e6b12d5c6b9f19812d5e860c5f9eab4de4.zip
Remove refcnt from fixedmap
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 5b6445758f0..7853ba610d9 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 */