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 <thaller@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Thomas Haller 2019-04-23 09:16:15 +02:00 committed by Stephen Hemminger
parent 927632d4da
commit 62de07faf7
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ int print_rule(struct nlmsghdr *n, void *arg)
"flow_from", " realms %s/", "flow_from", " realms %s/",
rtnl_rtrealm_n2a(from, b1, sizeof(b1))); rtnl_rtrealm_n2a(from, b1, sizeof(b1)));
else else
print_string(PRINT_FP, NULL, " ", NULL); print_string(PRINT_FP, NULL, " realms ", NULL);
print_string(PRINT_ANY, "flow_to", "%s", print_string(PRINT_ANY, "flow_to", "%s",
rtnl_rtrealm_n2a(to, b1, sizeof(b1))); rtnl_rtrealm_n2a(to, b1, sizeof(b1)));