]> 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)
commit03e3a613a1e4ccf88ad39d910a6bb455bdd0f291
treeb0d396d0c2b11ef585eefd81f18c2621e450747a
parent2e5136bbdaa0f24f44f8a7233371e141d54caaa3
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: e2adcfc95725 ("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