]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - include/libnetlink.h
libnetlink: add size argument to rtnl_talk
[mirror_iproute2.git] / include / libnetlink.h
index 898275b824d4976fe088d582ff7eeba8df7dc96c..bc1ab75e8656cb83b3b5ab5ee47e98e4009178a7 100644 (file)
@@ -54,8 +54,8 @@ extern int rtnl_dump_filter_l(struct rtnl_handle *rth,
                              const struct rtnl_dump_filter_arg *arg);
 extern int rtnl_dump_filter(struct rtnl_handle *rth, rtnl_filter_t filter,
                            void *arg);
-extern int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
-                    unsigned groups, struct nlmsghdr *answer)
+extern int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n,
+                    struct nlmsghdr *answer, size_t len)
        __attribute__((warn_unused_result));
 extern int rtnl_send(struct rtnl_handle *rth, const void *buf, int)
        __attribute__((warn_unused_result));