]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iprule: always print realms keyword for rule
authorThomas Haller <thaller@redhat.com>
Tue, 23 Apr 2019 07:16:15 +0000 (09:16 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 24 Apr 2019 22:06:15 +0000 (15:06 -0700)
# 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>
ip/iprule.c

index b00ca7d16f254be44ccaea66d6dc9711d3005929..9f5d998b788d4ca766abf613b1e460f53d1e6d69 100644 (file)
@@ -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)));