collectd/collectd — Issue #7: rtnl_dump_filter recent API change in iproute2
Author: octo
Created: 2012-02-19 12:07:12+00:00
State: open

From: Gaetan Bisson (Mantis #50)

**Description:** The _netlink module_ uses the `rtnl_dump_filter` function that iproute2 provides. However in recent iproute2 versions the function syntax changed; it went from:

int rtnl_dump_filter(*rth, *filter, *arg1, *junk, *arg2)

to:

int rtnl_dump_filter(*rth, *filter, *arg1)

The call in `netlink.c` should therefore be updated; a patch that just does that is attached.

**Steps to reproduce:** Compile collectd-5.0.2 on a x86_64 system with a recent iproute2 package. It fails with:

netlink.c: In function 'ir_read':
netlink.c:574:2: error: too many arguments to function 'rtnl_dump_filter'
/usr/include/libnetlink.h:40:12: note: declared here
netlink.c:612:6: error: too many arguments to function 'rtnl_dump_filter'
/usr/include/libnetlink.h:40:12: note: declared here