From: Thomas Haller Date: Tue, 23 Apr 2019 07:16:15 +0000 (+0200) Subject: iprule: always print realms keyword for rule X-Git-Tag: v5.1.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62de07faf7ecfbf867ce63e7e08bb624ad54137a;p=thirdparty%2Fiproute2.git iprule: always print realms keyword for rule # rule add priority 10 realms 1/0xF # rule add priority 10 realms 0/0xF # ip rule 10: from all lookup main 15 10: from all lookup main realms 1/15 The previous behavior was there since the beginning. Signed-off-by: Thomas Haller Signed-off-by: Stephen Hemminger --- diff --git a/ip/iprule.c b/ip/iprule.c index b00ca7d16..9f5d998b7 100644 --- a/ip/iprule.c +++ b/ip/iprule.c @@ -428,7 +428,7 @@ int print_rule(struct nlmsghdr *n, void *arg) "flow_from", " realms %s/", rtnl_rtrealm_n2a(from, b1, sizeof(b1))); else - print_string(PRINT_FP, NULL, " ", NULL); + print_string(PRINT_FP, NULL, " realms ", NULL); print_string(PRINT_ANY, "flow_to", "%s", rtnl_rtrealm_n2a(to, b1, sizeof(b1)));