From: Ido Schimmel Date: Thu, 19 Nov 2020 13:57:31 +0000 (+0200) Subject: nexthop: Always print nexthop flags X-Git-Tag: v5.11.0~32^2~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0788678991348642407381aa74456c9e71ca9974;p=thirdparty%2Fiproute2.git nexthop: Always print nexthop flags 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 Signed-off-by: David Ahern --- diff --git a/ip/ipnexthop.c b/ip/ipnexthop.c index 22c664918..b7ffff77c 100644 --- a/ip/ipnexthop.c +++ b/ip/ipnexthop.c @@ -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);