lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 19 Nov 2020 15:57:31 +0200 From: Ido Schimmel <idosch@...sch.org> To: netdev@...r.kernel.org Cc: dsahern@...il.com, roopa@...dia.com, mlxsw@...dia.com, Ido Schimmel <idosch@...dia.com> Subject: [PATCH iproute2-next 2/2] nexthop: Always print nexthop flags From: Ido Schimmel <idosch@...dia.com> 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@...dia.com> --- ip/ipnexthop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ip/ipnexthop.c b/ip/ipnexthop.c index 22c664918fcc..b7ffff77c160 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); -- 2.28.0
Powered by blists - more mailing lists