summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 48bc4be)
raw | patch | inline | side by side (parent: 48bc4be)
author | Florian Forster <octo@huhu.verplant.org> | |
Tue, 4 Sep 2007 08:32:13 +0000 (10:32 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 4 Sep 2007 08:32:13 +0000 (10:32 +0200) |
src/netlink.c | patch | blob | history |
diff --git a/src/netlink.c b/src/netlink.c
index 6f9f593cbeefdf13a006c07caf6f7f79ce60f300..3cd91d8ae74cadf18520c78bc09175b5b32a7723 100644 (file)
--- a/src/netlink.c
+++ b/src/netlink.c
#include <asm/types.h>
#include <sys/socket.h>
-#include <iproute/libnetlink.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/gen_stats.h>
-#include <iproute/ll_map.h>
+#if HAVE_LIBNETLINK_H
+# include <libnetlink.h>
+#elif HAVE_IPROUTE_LIBNETLINK_H
+# include <iproute/libnetlink.h>
+#elif HAVE_LINUX_LIBNETLINK_H
+# include <linux/libnetlink.h>
+#endif
typedef struct ir_ignorelist_s
{
return (-1);
}
- if (ll_init_map (&rth) != 0)
- {
- ERROR ("netlink plugin: ir_read: ll_init_map failed.");
- return (-1);
- }
-
return (0);
} /* int ir_init */