From 58accf39d7a6339bfeed103198907038e82682d5 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 20 Oct 2023 00:10:34 +0200 Subject: [PATCH] Fix IPv6 routing failover for Thread (#2434) (#2845) The patch added in #2434 is not working: IS_ENABLED requires the full config symbol including CONFIG_ prefix. Fix the patch to make automatic IPv6 route failover depening on IPv6 reachability probes actually work. --- ...d-option-to-explicitly-enable-reachability-te.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/buildroot-external/patches/linux/0001-ipv6-add-option-to-explicitly-enable-reachability-te.patch b/buildroot-external/patches/linux/0001-ipv6-add-option-to-explicitly-enable-reachability-te.patch index 21a7be78dcf..745b8efdb92 100644 --- a/buildroot-external/patches/linux/0001-ipv6-add-option-to-explicitly-enable-reachability-te.patch +++ b/buildroot-external/patches/linux/0001-ipv6-add-option-to-explicitly-enable-reachability-te.patch @@ -1,5 +1,5 @@ -From b9182b02829b158d55acc53a0bcec1ed667b2668 Mon Sep 17 00:00:00 2001 -Message-Id: +From 5761ca22d64773b901f2578fad418bdefeb08b93 Mon Sep 17 00:00:00 2001 +Message-ID: <5761ca22d64773b901f2578fad418bdefeb08b93.1697750485.git.stefan@agner.ch> From: Stefan Agner Date: Tue, 28 Mar 2023 12:02:10 +0200 Subject: [PATCH] ipv6: add option to explicitly enable reachability test @@ -38,7 +38,7 @@ index 658bfed1df8b..5147fd4c93ff 100644 tristate "IPv6: AH transformation" select XFRM_AH diff --git a/net/ipv6/route.c b/net/ipv6/route.c -index 0fdb03df2287..5e1e1f02f400 100644 +index 960ab43a49c4..89922091719c 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2210,7 +2210,8 @@ struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table, @@ -47,10 +47,10 @@ index 0fdb03df2287..5e1e1f02f400 100644 strict |= flags & RT6_LOOKUP_F_IGNORE_LINKSTATE; - if (net->ipv6.devconf_all->forwarding == 0) + if (net->ipv6.devconf_all->forwarding == 0 || -+ IS_ENABLED(IPV6_REACHABILITY_PROBE)) ++ IS_ENABLED(CONFIG_IPV6_REACHABILITY_PROBE)) strict |= RT6_LOOKUP_F_REACHABLE; rcu_read_lock(); -- -2.40.0 +2.42.0