diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-29 22:42:42 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-11-29 22:42:42 +0100 |
commit | a13150499c9df25718505ddd1b2bbd48a51c6ffc (patch) | |
tree | 43578249f2e636b278377f5339ec2469e2a663b0 | |
parent | e18fb977156f938d76a58906af47cbcd9a3702bb (diff) |
netlink: rename symbol to avoid clashes
At somepoint we may need to wg_ namespace these.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/main.c | 4 | ||||
-rw-r--r-- | src/netlink.c | 4 | ||||
-rw-r--r-- | src/netlink.h | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -34,7 +34,7 @@ static int __init mod_init(void) if (ret < 0) goto err_packet; - ret = netlink_init(); + ret = genetlink_init(); if (ret < 0) goto err_netlink; @@ -51,7 +51,7 @@ err_packet: static void __exit mod_exit(void) { - netlink_uninit(); + genetlink_uninit(); device_uninit(); pr_debug("WireGuard unloaded\n"); } diff --git a/src/netlink.c b/src/netlink.c index 43e5ce0..7faaa1a 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -498,12 +498,12 @@ __ro_after_init = { .netnsok = true }; -int __init netlink_init(void) +int __init genetlink_init(void) { return genl_register_family(&genl_family); } -void __exit netlink_uninit(void) +void __exit genetlink_uninit(void) { genl_unregister_family(&genl_family); } diff --git a/src/netlink.h b/src/netlink.h index 9fe2c78..750b874 100644 --- a/src/netlink.h +++ b/src/netlink.h @@ -3,7 +3,7 @@ #ifndef _WG_NETLINK_H #define _WG_NETLINK_H -int netlink_init(void); -void netlink_uninit(void); +int genetlink_init(void); +void genetlink_uninit(void); #endif /* _WG_NETLINK_H */ |