diff options
author | Xiao Liang <shaw.leon@gmail.com> | 2021-09-23 18:03:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-24 16:07:10 +0300 |
commit | 597aa16c782496bf74c5dc3b45ff472ade6cee64 (patch) | |
tree | b0d396d0c2b11ef585eefd81f18c2621e450747a /include/net/nexthop.h | |
parent | 325fd36ae76a6d089983b2d2eccb41237d35b221 (diff) | |
download | linux-597aa16c782496bf74c5dc3b45ff472ade6cee64.tar.xz |
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>
Diffstat (limited to 'include/net/nexthop.h')
-rw-r--r-- | include/net/nexthop.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/nexthop.h b/include/net/nexthop.h index 10e1777877e6..28085b995ddc 100644 --- a/include/net/nexthop.h +++ b/include/net/nexthop.h @@ -325,7 +325,7 @@ int nexthop_mpath_fill_node(struct sk_buff *skb, struct nexthop *nh, struct fib_nh_common *nhc = &nhi->fib_nhc; int weight = nhg->nh_entries[i].weight; - if (fib_add_nexthop(skb, nhc, weight, rt_family) < 0) + if (fib_add_nexthop(skb, nhc, weight, rt_family, 0) < 0) return -EMSGSIZE; } |