summaryrefslogtreecommitdiffstats
path: root/src/fixedmap.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-10-02 00:29:34 +0100
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-10-02 00:29:34 +0100
commit4c3ed084b726cbb7cf61e150434c836306ee35e5 (patch)
treebe75f7748ac1e0045f8e2694af4a45577a2c4cb9 /src/fixedmap.h
parentUpdate DPRINTF calls to report the interface name. (diff)
downloadwireguard-openbsd-4c3ed084b726cbb7cf61e150434c836306ee35e5.tar.xz
wireguard-openbsd-4c3ed084b726cbb7cf61e150434c836306ee35e5.zip
I don't have a good commit message for this
Changes: * Move fixedmap lock to fixedmap struct, rather than relying on d_lock. * Adjust outq to supply the ID to lookup later. This requires the caller to know the standard convention, peer id on initiation, session id otherwise. * Added fixed number session management, that is one handshake session, one current session and one old session. * Fix some ref counting
Diffstat (limited to 'src/fixedmap.h')
-rw-r--r--src/fixedmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fixedmap.h b/src/fixedmap.h
index dad4d596fdd..d56a9b7bfbc 100644
--- a/src/fixedmap.h
+++ b/src/fixedmap.h
@@ -29,6 +29,7 @@
struct fixed_map {
size_t size;
+ struct rwlock lock;
struct map_item {
enum {
FM_ITEM_EMPTY = 0,