]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - ip/tcp_metrics.c
libnetlink: add size argument to rtnl_talk
[mirror_iproute2.git] / ip / tcp_metrics.c
index bbbb4cc0cfff36ab5b1bbafd2f3259ef23ed4fe7..bdc503ef831ccee7344c402745093898379e5b58 100644 (file)
@@ -467,10 +467,10 @@ static int tcpm_do_cmd(int cmd, int argc, char **argv)
        }
 
        if (ack) {
-               if (rtnl_talk(&grth, &req.n, 0, 0, NULL) < 0)
+               if (rtnl_talk(&grth, &req.n, NULL, 0) < 0)
                        return -2;
        } else if (atype >= 0) {
-               if (rtnl_talk(&grth, &req.n, 0, 0, &req.n) < 0)
+               if (rtnl_talk(&grth, &req.n, &req.n, sizeof(req)) < 0)
                        return -2;
                if (process_msg(NULL, &req.n, stdout) < 0) {
                        fprintf(stderr, "Dump terminated\n");