summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-09-03 15:22:12 -0700
committerDavid S. Miller <davem@davemloft.net>2019-09-05 11:59:39 +0200
commit4255ff0544ee307e9a8acf66000e6fd49e9203f8 (patch)
treed0ed86080033257afa8464a02a959f6eaa99fda6 /net/ipv6
parent44580a0118d3ede95fec4dce32df5f75f73cd663 (diff)
downloadlinux-4255ff0544ee307e9a8acf66000e6fd49e9203f8.tar.bz2
ipv6: Fix RTA_MULTIPATH with nexthop objects
A change to the core nla helpers was missed during the push of the nexthop changes. rt6_fill_node_nexthop should be calling nla_nest_start_noflag not nla_nest_start. Currently, iproute2 does not print multipath data because of parsing issues with the attribute. Fixes: f88d8ea67fbd ("ipv6: Plumb support for nexthop object in a fib6_info") Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 2927e72e511a..977cfd09e2a3 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -5329,7 +5329,7 @@ static int rt6_fill_node_nexthop(struct sk_buff *skb, struct nexthop *nh,
if (nexthop_is_multipath(nh)) {
struct nlattr *mp;
- mp = nla_nest_start(skb, RTA_MULTIPATH);
+ mp = nla_nest_start_noflag(skb, RTA_MULTIPATH);
if (!mp)
goto nla_put_failure;