]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
nexthop: Always print nexthop flags
authorIdo Schimmel <idosch@nvidia.com>
Thu, 19 Nov 2020 13:57:31 +0000 (15:57 +0200)
committerDavid Ahern <dsahern@gmail.com>
Sun, 22 Nov 2020 19:43:56 +0000 (12:43 -0700)
Currently, the nexthop flags are only printed when the nexthop has a
nexthop device. The offload / trap indication is therefore not printed
for nexthop groups.

Instead, always print the nexthop flags, regardless if the nexthop has a
nexthop device or not.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipnexthop.c

index 22c664918fccfd7b3ce9979317e6b420ff43e582..b7ffff77c160f6adac8a5e0df4482e9cde475589 100644 (file)
@@ -263,8 +263,7 @@ int print_nexthop(struct nlmsghdr *n, void *arg)
                             rtnl_rtprot_n2a(nhm->nh_protocol, b1, sizeof(b1)));
        }
 
-       if (tb[NHA_OIF])
-               print_rt_flags(fp, nhm->nh_flags);
+       print_rt_flags(fp, nhm->nh_flags);
 
        if (tb[NHA_FDB])
                print_null(PRINT_ANY, "fdb", "fdb", NULL);