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 | 06b12364716b4f7b8f561877b90dc43619f30874 (patch) | |
tree | 8f5f5e066d82993134bf47490c6f820a67164410 /src/allowedips.h | |
parent | netlink: do not stuff index into nla type (diff) | |
download | wireguard-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/allowedips.h')
-rw-r--r-- | src/allowedips.h | 20 |
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 |