iprule: fix printing hint about unresolved iifname and oifname

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: 0dd4ccc56c ("iprule: add json support")

Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Thomas Haller 2019-03-06 12:04:00 +01:00 committed by Stephen Hemminger
parent 8b5f9338e5
commit 546109a7cf
1 changed files with 2 additions and 1 deletions

View 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) {