aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/hashtables.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 03:36:20 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 03:38:12 +0200
commit06b12364716b4f7b8f561877b90dc43619f30874 (patch)
tree8f5f5e066d82993134bf47490c6f820a67164410 /src/hashtables.h
parentnetlink: do not stuff index into nla type (diff)
downloadwireguard-monolithic-historical-06b12364716b4f7b8f561877b90dc43619f30874.tar.xz
wireguard-monolithic-historical-06b12364716b4f7b8f561877b90dc43619f30874.zip
global: rename struct wireguard_ to struct wg_
This required a bit of pruning of our christmas trees. Suggested-by: Jiri Pirko <jiri@resnulli.us>
Diffstat (limited to 'src/hashtables.h')
-rw-r--r--src/hashtables.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/hashtables.h b/src/hashtables.h
index 8b855d7..9e7638c 100644
--- a/src/hashtables.h
+++ b/src/hashtables.h
@@ -12,7 +12,7 @@
#include <linux/mutex.h>
#include <linux/siphash.h>
-struct wireguard_peer;
+struct wg_peer;
struct pubkey_hashtable {
/* TODO: move to rhashtable */
@@ -23,10 +23,10 @@ struct pubkey_hashtable {
void wg_pubkey_hashtable_init(struct pubkey_hashtable *table);
void wg_pubkey_hashtable_add(struct pubkey_hashtable *table,
- struct wireguard_peer *peer);
+ struct wg_peer *peer);
void wg_pubkey_hashtable_remove(struct pubkey_hashtable *table,
- struct wireguard_peer *peer);
-struct wireguard_peer *
+ struct wg_peer *peer);
+struct wg_peer *
wg_pubkey_hashtable_lookup(struct pubkey_hashtable *table,
const u8 pubkey[NOISE_PUBLIC_KEY_LEN]);
@@ -42,7 +42,7 @@ enum index_hashtable_type {
};
struct index_hashtable_entry {
- struct wireguard_peer *peer;
+ struct wg_peer *peer;
struct hlist_node index_hash;
enum index_hashtable_type type;
__le32 index;
@@ -59,6 +59,6 @@ void wg_index_hashtable_remove(struct index_hashtable *table,
struct index_hashtable_entry *
wg_index_hashtable_lookup(struct index_hashtable *table,
const enum index_hashtable_type type_mask,
- const __le32 index, struct wireguard_peer **peer);
+ const __le32 index, struct wg_peer **peer);
#endif /* _WG_HASHTABLES_H */