]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Sep 2021 13:07:10 +0000 (14:07 +0100)
commit597aa16c782496bf74c5dc3b45ff472ade6cee64
treeb0d396d0c2b11ef585eefd81f18c2621e450747a
parent325fd36ae76a6d089983b2d2eccb41237d35b221
net: ipv4: Fix rtnexthop len when RTA_FLOW is present

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>
include/net/ip_fib.h
include/net/nexthop.h
net/ipv4/fib_semantics.c
net/ipv6/route.c