]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: take care of disable_policy when restoring routes
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 23 Jun 2022 12:00:15 +0000 (14:00 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 28 Jun 2022 05:24:30 +0000 (22:24 -0700)
commit945c3ffa38eea8ba919ab200b4d82bd1fd4211ee
treea43c971de0d022fb42be84030143dadf65b4bca6
parent0c699fa39d4b2ed8a2d7f4e7e32480dec7dfa78f
ipv6: take care of disable_policy when restoring routes

When routes corresponding to addresses are restored by
fixup_permanent_addr(), the dst_nopolicy parameter was not set.
The typical use case is a user that configures an address on a down
interface and then put this interface up.

Let's take care of this flag in addrconf_f6i_alloc(), so that every callers
benefit ont it.

CC: stable@kernel.org
CC: David Forster <dforster@brocade.com>
Fixes: 1a506b452042 ("ipv6: Provide ipv6 version of "disable_policy" sysctl")
Reported-by: Siwar Zitouni <siwar.zitouni@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20220623120015.32640-1-nicolas.dichtel@6wind.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/addrconf.c
net/ipv6/route.c