From 2229ac6a8a503816c4d487db033ef87041663488 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 18 Jan 2024 11:52:32 +0100 Subject: [PATCH] RA: Fix announcing on the right tunnel We were previously just announcing on the last tunnel looked at in the loop much above. --- l2tpns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l2tpns.c b/l2tpns.c index baa1a50..382a349 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -3963,7 +3963,7 @@ static void regular_cleanups(double period) if (session[s].ppp.phase == Network && session[s].ppp.ipv6cp == Opened && (time_now - sess_local[s].last_ra >= RtrAdvInterval)) { - send_ipv6_ra(s, t, NULL); + send_ipv6_ra(s, session[s].tunnel, NULL); sess_local[s].last_ra = time_now; }