]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - ip/tcp_metrics.c
ip: bond: add xstats support
[mirror_iproute2.git] / ip / tcp_metrics.c
index ad3d6f363003dfc9ab6f29ce37c88c6950ea68ab..72ef3ab5cfda4a01ae3a0328125068ae5b0e6d4f 100644 (file)
@@ -156,8 +156,7 @@ static void print_tcp_metrics(struct rtattr *a)
        }
 }
 
-static int process_msg(const struct sockaddr_nl *who, struct nlmsghdr *n,
-                      void *arg)
+static int process_msg(struct nlmsghdr *n, void *arg)
 {
        FILE *fp = (FILE *) arg;
        struct genlmsghdr *ghdr;
@@ -501,7 +500,7 @@ static int tcpm_do_cmd(int cmd, int argc, char **argv)
        } else if (atype >= 0) {
                if (rtnl_talk(&grth, &req.n, &answer) < 0)
                        return -2;
-               if (process_msg(NULL, answer, stdout) < 0) {
+               if (process_msg(answer, stdout) < 0) {
                        fprintf(stderr, "Dump terminated\n");
                        exit(1);
                }