]> git.meshlink.io Git - catta/blobdiff - avahi-core/iface-linux.c
netlink: fix wrong use of netlink flags for dump operations
[catta] / avahi-core / iface-linux.c
index a1b7f73ec48db314de2c718e5cc4ba58cab381fd..4d12f73504193d00332f56debdcdd8581f00bab7 100644 (file)
@@ -53,7 +53,7 @@ static int netlink_list_items(AvahiNetlink *nl, uint16_t type, unsigned *ret_seq
     n = (struct nlmsghdr*) req;
     n->nlmsg_len = NLMSG_LENGTH(sizeof(struct rtgenmsg));
     n->nlmsg_type = type;
-    n->nlmsg_flags = NLM_F_ROOT|NLM_F_REQUEST;
+    n->nlmsg_flags = NLM_F_REQUEST|NLM_F_DUMP;
     n->nlmsg_pid = 0;
 
     gen = NLMSG_DATA(n);