diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-08 03:36:20 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-08 03:38:12 +0200 |
commit | 1027c1fb4493130ed9df96fd4092c4bf9c599b82 (patch) | |
tree | 9cc86eb2c6c003f220c9d66171a2d5d0f59745b6 /src/hashtables.h | |
parent | 021084071d57c47c9aabe9c3fcd9be8fd870fa0e (diff) |
global: rename struct wireguard_ to struct wg_
This required a bit of pruning of our christmas trees.
Suggested-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/hashtables.h')
-rw-r--r-- | src/hashtables.h | 12 |
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 */ |