aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/allowedips.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/allowedips.h')
-rw-r--r--src/allowedips.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/allowedips.h b/src/allowedips.h
index c34e216..d920dc2 100644
--- a/src/allowedips.h
+++ b/src/allowedips.h
@@ -10,7 +10,7 @@
#include <linux/ip.h>
#include <linux/ipv6.h>
-struct wireguard_peer;
+struct wg_peer;
struct allowedips_node;
struct allowedips {
@@ -29,24 +29,22 @@ struct allowedips_cursor {
void wg_allowedips_init(struct allowedips *table);
void wg_allowedips_free(struct allowedips *table, struct mutex *mutex);
int wg_allowedips_insert_v4(struct allowedips *table, const struct in_addr *ip,
- u8 cidr, struct wireguard_peer *peer,
- struct mutex *lock);
+ u8 cidr, struct wg_peer *peer, struct mutex *lock);
int wg_allowedips_insert_v6(struct allowedips *table, const struct in6_addr *ip,
- u8 cidr, struct wireguard_peer *peer,
- struct mutex *lock);
+ u8 cidr, struct wg_peer *peer, struct mutex *lock);
void wg_allowedips_remove_by_peer(struct allowedips *table,
- struct wireguard_peer *peer,
- struct mutex *lock);
+ struct wg_peer *peer, struct mutex *lock);
int wg_allowedips_walk_by_peer(struct allowedips *table,
struct allowedips_cursor *cursor,
- struct wireguard_peer *peer,
- int (*func)(void *ctx, const u8 *ip, u8 cidr, int family),
+ struct wg_peer *peer,
+ int (*func)(void *ctx, const u8 *ip, u8 cidr,
+ int family),
void *ctx, struct mutex *lock);
/* These return a strong reference to a peer: */
-struct wireguard_peer *wg_allowedips_lookup_dst(struct allowedips *table,
+struct wg_peer *wg_allowedips_lookup_dst(struct allowedips *table,
struct sk_buff *skb);
-struct wireguard_peer *wg_allowedips_lookup_src(struct allowedips *table,
+struct wg_peer *wg_allowedips_lookup_src(struct allowedips *table,
struct sk_buff *skb);
#ifdef DEBUG