summaryrefslogtreecommitdiff
path: root/lib/route/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/route/route.c')
-rw-r--r--lib/route/route.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/route/route.c b/lib/route/route.c
index fcc7459c..0a16ff4f 100644
--- a/lib/route/route.c
+++ b/lib/route/route.c
@@ -10,8 +10,8 @@
* @{
*/
-#include <netlink-private/netlink.h>
-#include <netlink-private/nl-auto.h>
+#include "nl-default.h"
+
#include <netlink/netlink.h>
#include <netlink/cache.h>
#include <netlink/utils.h>
@@ -20,6 +20,11 @@
#include <netlink/route/route.h>
#include <netlink/route/link.h>
+#include "nl-route.h"
+#include "nl-priv-dynamic-core/nl-core.h"
+#include "nl-priv-dynamic-core/cache-api.h"
+#include "nl-aux-route/nl-route.h"
+
static struct nl_cache_ops rtnl_route_ops;
static int route_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who,
@@ -215,12 +220,12 @@ static struct nl_cache_ops rtnl_route_ops = {
.co_obj_ops = &route_obj_ops,
};
-static void __init route_init(void)
+static void _nl_init route_init(void)
{
nl_cache_mngt_register(&rtnl_route_ops);
}
-static void __exit route_exit(void)
+static void _nl_exit route_exit(void)
{
nl_cache_mngt_unregister(&rtnl_route_ops);
}