#ifdef HAVE_LINUX_NEIGHBOUR_H
# include <linux/neighbour.h>
#endif
+#ifdef HAVE_STRUCT_NETCONFMSG
+# include <linux/netconf.h>
+#endif
#include <linux/rtnetlink.h>
#ifdef HAVE_IF_INDEXTONAME
}
#endif
+#ifdef HAVE_STRUCT_NETCONFMSG
+static void
+test_rtnl_netconf(const int fd)
+{
+ void *const nlh0 = tail_alloc(NLMSG_HDRLEN);
+ static const struct netconfmsg msg = {
+ .ncm_family = AF_INET
+ };
+
+ TEST_NETLINK(fd, nlh0,
+ RTM_GETNETCONF, NLM_F_REQUEST,
+ sizeof(msg), &msg, sizeof(msg),
+ printf("{ncm_family=AF_INET}"));
+}
+#endif
+
int main(void)
{
skip_if_unavailable("/proc/self/fd/");
#ifdef HAVE_STRUCT_DCBMSG
test_rtnl_dcb(fd);
#endif
+#ifdef HAVE_STRUCT_NETCONFMSG
+ test_rtnl_netconf(fd);
+#endif
printf("+++ exited with 0 +++\n");