]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
iprule: fix printing hint about unresolved iifname and oifname
authorThomas Haller <thaller@redhat.com>
Wed, 6 Mar 2019 11:04:00 +0000 (12:04 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 8 Mar 2019 00:14:09 +0000 (16:14 -0800)
was displayed as

    10:     from all iif eth1 [detached] goto 10000unresolved proto mrt

now:

    10:     from all iif eth1 [detached] goto 10000 [unresolved] proto mrt

Fixes: 0dd4ccc56c0e ("iprule: add json support")
Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iprule.c

index 4e9437de343780df8c56c68a8d8792ec4ece5a7a..83aef38e0dc7362efc5caacc8eec67154d0f5fce 100644 (file)
@@ -455,7 +455,8 @@ int print_rule(struct nlmsghdr *n, void *arg)
                        print_string(PRINT_ANY, "goto", "goto %s", "none");
 
                if (frh->flags & FIB_RULE_UNRESOLVED)
-                       print_null(PRINT_ANY, "unresolved", "unresolved", NULL);
+                       print_null(PRINT_ANY, "unresolved",
+                                  " [unresolved]", NULL);
        } else if (frh->action == FR_ACT_NOP) {
                print_null(PRINT_ANY, "nop", "nop", NULL);
        } else if (frh->action != FR_ACT_TO_TBL) {