summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-29 22:42:42 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-29 22:42:42 +0100
commita13150499c9df25718505ddd1b2bbd48a51c6ffc (patch)
tree43578249f2e636b278377f5339ec2469e2a663b0
parente18fb977156f938d76a58906af47cbcd9a3702bb (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.c4
-rw-r--r--src/netlink.c4
-rw-r--r--src/netlink.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index be5a42b..fea8c65 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 */