X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fnetlink.c;h=3cd91d8ae74cadf18520c78bc09175b5b32a7723;hb=c8ec3924c92ad3ca15229e8e923eaece64221337;hp=fa8a92f2e6850c678e5aa1a7dd70ca077c58b97f;hpb=a392d55f295710f97ce970d3931ffe545c41511f;p=collectd.git diff --git a/src/netlink.c b/src/netlink.c index fa8a92f2..3cd91d8a 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -25,12 +25,17 @@ #include #include -#include #include #include #include -#include +#if HAVE_LIBNETLINK_H +# include +#elif HAVE_IPROUTE_LIBNETLINK_H +# include +#elif HAVE_LINUX_LIBNETLINK_H +# include +#endif typedef struct ir_ignorelist_s { @@ -130,12 +135,6 @@ static int check_ignorelist (const char *dev, if (strcasecmp (i->type, type) != 0) continue; -#if 0 - if ((i->inst != NULL) - && ((type_instance == NULL) - || (strcasecmp (i->inst, type_instance) != 0))) - continue; -#endif if ((i->inst != NULL) && (type_instance != NULL) && (strcasecmp (i->inst, type_instance) != 0)) continue; @@ -515,12 +514,6 @@ static int ir_init (void) return (-1); } - if (ll_init_map (&rth) != 0) - { - ERROR ("netlink plugin: ir_read: ll_init_map failed."); - return (-1); - } - return (0); } /* int ir_init */