]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Handle onlink flag with multipath routes
authorDavid Ahern <dsahern@gmail.com>
Tue, 20 Mar 2018 17:06:59 +0000 (10:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 16:40:04 +0000 (12:40 -0400)
commit83f7965b6e709c99885e4548b3d3b507137ed754
tree101c2c43934c913002b525ad7f016021e1de6efc
parent5b61bd238fffd496da7703a1388ce7f4a4074121
net/ipv6: Handle onlink flag with multipath routes

For multipath routes the ONLINK flag can be specified per nexthop in
rtnh_flags or globally in rtm_flags. Update ip6_route_multipath_add
to consider the ONLINK setting coming from rtnh_flags. Each loop over
nexthops the config for the sibling route is initialized to the global
config and then per nexthop settings overlayed. The flag is 'or'ed into
fib6_config to handle the ONLINK flag coming from either rtm_flags or
rtnh_flags.

Fixes: bf366c3706a7 ("net/ipv6: Add support for onlink flag")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c