net: ipv4: Fix rtnexthop len when RTA_FLOW is present
authorXiao Liang <shaw.leon@gmail.com>
Thu, 23 Sep 2021 15:03:19 +0000 (23:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Oct 2021 13:55:53 +0000 (15:55 +0200)
commit8de12ad9162ca2648c82d631c47c2f7de565aa73
tree76c1b9e94634e9b6445ac23bafa0a717367c959a
parentb22c5e2c8e0380430a1c6d9ccbac8cb19d4ce986
net: ipv4: Fix rtnexthop len when RTA_FLOW is present

[ Upstream commit 597aa16c782496bf74c5dc3b45ff472ade6cee64 ]

Multipath RTA_FLOW is embedded in nexthop. Dump it in fib_add_nexthop()
to get the length of rtnexthop correct.

Fixes: b0f60193632e ("ipv4: Refactor nexthop attributes in fib_dump_info")
Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/ip_fib.h
include/net/nexthop.h
net/ipv4/fib_semantics.c
net/ipv6/route.c