Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
AC_MSG_RESULT(no)
])
+ AC_MSG_CHECKING([if netlink_dump_start has 5 parameters])
+ LB_LINUX_TRY_COMPILE([
+ #include <linux/netlink.h>
+ ],[
+ int ret = netlink_dump_start(NULL, NULL, NULL, NULL, NULL);
+
+ return 0;
+ ],[
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_NETLINK_DUMP_START_5P, 1,
+ [ is defined])
+ ],[
+ AC_MSG_RESULT(no)
+ ])
+
AC_MSG_CHECKING([if struct dcbnl_rtnl_ops has ieee_getmaxrate/ieee_setmaxrate])
LB_LINUX_TRY_COMPILE([
#include <net/dcbnl.h>
return skb;
}
-#if ! defined(HAVE_NETLINK_DUMP_START_6P)
+#ifdef HAVE_NETLINK_DUMP_START_5P
#include <linux/netlink.h>
/* remove last arg */
#define netlink_dump_start(a, b, c, d, e, f) netlink_dump_start(a, b, c, d, e)