#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 */