summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Kbuild2
-rw-r--r--src/device.h2
-rw-r--r--src/noise.c2
-rw-r--r--src/noise.h2
-rw-r--r--src/peer.c2
-rw-r--r--src/peerlookup.c (renamed from src/hashtables.c)2
-rw-r--r--src/peerlookup.h (renamed from src/hashtables.h)6
7 files changed, 9 insertions, 9 deletions
diff --git a/src/Kbuild b/src/Kbuild
index abf6b2e..f84b4de 100644
--- a/src/Kbuild
+++ b/src/Kbuild
@@ -6,7 +6,7 @@ ccflags-y := -O3 -fvisibility=hidden
ccflags-$(CONFIG_WIREGUARD_DEBUG) += -DDEBUG -g
ccflags-y += -D'pr_fmt(fmt)=KBUILD_MODNAME ": " fmt'
-wireguard-y := main.o noise.o device.o peer.o timers.o queueing.o send.o receive.o socket.o hashtables.o allowedips.o ratelimiter.o cookie.o netlink.o
+wireguard-y := main.o noise.o device.o peer.o timers.o queueing.o send.o receive.o socket.o peerlookup.o allowedips.o ratelimiter.o cookie.o netlink.o
include $(src)/crypto/Kbuild.include
include $(src)/compat/Kbuild.include
diff --git a/src/device.h b/src/device.h
index 7e7e216..b15a8be 100644
--- a/src/device.h
+++ b/src/device.h
@@ -8,7 +8,7 @@
#include "noise.h"
#include "allowedips.h"
-#include "hashtables.h"
+#include "peerlookup.h"
#include "cookie.h"
#include <linux/types.h>
diff --git a/src/noise.c b/src/noise.c
index 2e05e27..bf0b8c5 100644
--- a/src/noise.c
+++ b/src/noise.c
@@ -8,7 +8,7 @@
#include "peer.h"
#include "messages.h"
#include "queueing.h"
-#include "hashtables.h"
+#include "peerlookup.h"
#include <linux/rcupdate.h>
#include <linux/slab.h>
diff --git a/src/noise.h b/src/noise.h
index 8e5cc0a..9c2cc62 100644
--- a/src/noise.h
+++ b/src/noise.h
@@ -6,7 +6,7 @@
#define _WG_NOISE_H
#include "messages.h"
-#include "hashtables.h"
+#include "peerlookup.h"
#include <linux/types.h>
#include <linux/spinlock.h>
diff --git a/src/peer.c b/src/peer.c
index 0c7e942..508f1d5 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -7,7 +7,7 @@
#include "device.h"
#include "queueing.h"
#include "timers.h"
-#include "hashtables.h"
+#include "peerlookup.h"
#include "noise.h"
#include <linux/kref.h>
diff --git a/src/hashtables.c b/src/peerlookup.c
index 8aedc17..e4deb33 100644
--- a/src/hashtables.c
+++ b/src/peerlookup.c
@@ -3,7 +3,7 @@
* Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*/
-#include "hashtables.h"
+#include "peerlookup.h"
#include "peer.h"
#include "noise.h"
diff --git a/src/hashtables.h b/src/peerlookup.h
index de77537..ced8117 100644
--- a/src/hashtables.h
+++ b/src/peerlookup.h
@@ -3,8 +3,8 @@
* Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*/
-#ifndef _WG_HASHTABLES_H
-#define _WG_HASHTABLES_H
+#ifndef _WG_PEERLOOKUP_H
+#define _WG_PEERLOOKUP_H
#include "messages.h"
@@ -61,4 +61,4 @@ wg_index_hashtable_lookup(struct index_hashtable *table,
const enum index_hashtable_type type_mask,
const __le32 index, struct wg_peer **peer);
-#endif /* _WG_HASHTABLES_H */
+#endif /* _WG_PEERLOOKUP_H */