]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ip: address: fix stats64 JSON object name
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 26 Jan 2018 19:30:35 +0000 (11:30 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 28 Jan 2018 00:06:54 +0000 (16:06 -0800)
The JSON object name for statistics in ip link show is "stats644".
Looks like a typo, commit d0e720111aad ("ip: ipaddress.c: add support
for json output") contains an example with the expected "stats64" name.

The fact that no one has noticed until now is probably an indication
that no one is using this object.  Hopefully it's not too late to fix
this, although IIUC this has already been in 4.13 and 4.14 releases :S

Fixes: d0e720111aad ("ip: ipaddress.c: add support for json output")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipaddress.c

index c41e24b50d24f4d6f4925af1a0d431c6fa962c7b..1601264a9b27616c0c8bc5b8889033e87f801f9d 100644 (file)
@@ -598,7 +598,7 @@ static void print_link_stats64(FILE *fp, const struct rtnl_link_stats64 *s,
                               const struct rtattr *carrier_changes)
 {
        if (is_json_context()) {
-               open_json_object("stats644");
+               open_json_object("stats64");
 
                /* RX stats */
                open_json_object("rx");