diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-07 19:19:25 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-08 03:14:52 +0200 |
commit | b09de1f158b7b4ed69265edda4c411791602badd (patch) | |
tree | b2ec371d9a44bd468a976eb719e50080199f6c62 /src/netlink.c | |
parent | ba483b05385c35d3863921eec72292c349292a7e (diff) |
global: prefix functions used in callbacks with wg_
Suggested-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/netlink.c')
-rw-r--r-- | src/netlink.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/netlink.c b/src/netlink.c index 56749ba..17aa575 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -166,7 +166,7 @@ err: return -EMSGSIZE; } -static int get_device_start(struct netlink_callback *cb) +static int wg_get_device_start(struct netlink_callback *cb) { struct nlattr **attrs = genl_family_attrbuf(&genl_family); struct wireguard_device *wg; @@ -190,7 +190,7 @@ static int get_device_start(struct netlink_callback *cb) return 0; } -static int get_device_dump(struct sk_buff *skb, struct netlink_callback *cb) +static int wg_get_device_dump(struct sk_buff *skb, struct netlink_callback *cb) { struct wireguard_peer *peer, *next_peer_cursor, *last_peer_cursor; struct allowedips_cursor *rt_cursor; @@ -289,7 +289,7 @@ out: */ } -static int get_device_done(struct netlink_callback *cb) +static int wg_get_device_done(struct netlink_callback *cb) { struct wireguard_device *wg = (struct wireguard_device *)cb->args[0]; struct wireguard_peer *peer = (struct wireguard_peer *)cb->args[1]; @@ -475,7 +475,7 @@ out: return ret; } -static int set_device(struct sk_buff *skb, struct genl_info *info) +static int wg_set_device(struct sk_buff *skb, struct genl_info *info) { struct wireguard_device *wg = lookup_interface(info->attrs, skb); int ret; @@ -576,15 +576,15 @@ struct genl_ops genl_ops[] = { { .cmd = WG_CMD_GET_DEVICE, #ifndef COMPAT_CANNOT_USE_NETLINK_START - .start = get_device_start, + .start = wg_get_device_start, #endif - .dumpit = get_device_dump, - .done = get_device_done, + .dumpit = wg_get_device_dump, + .done = wg_get_device_done, .policy = device_policy, .flags = GENL_UNS_ADMIN_PERM }, { .cmd = WG_CMD_SET_DEVICE, - .doit = set_device, + .doit = wg_set_device, .policy = device_policy, .flags = GENL_UNS_ADMIN_PERM } |