From: Thomas Haller Date: Wed, 6 Mar 2019 11:04:00 +0000 (+0100) Subject: iprule: fix printing hint about unresolved iifname and oifname X-Git-Tag: v5.0.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=546109a7cf16921112fd9752eea02ce14cd32f16;p=thirdparty%2Fiproute2.git 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: 0dd4ccc56c0e ("iprule: add json support") Signed-off-by: Thomas Haller Signed-off-by: Stephen Hemminger --- diff --git a/ip/iprule.c b/ip/iprule.c index 4e9437de3..83aef38e0 100644 --- a/ip/iprule.c +++ b/ip/iprule.c @@ -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) {