RA: Fix announcing on the right tunnel

We were previously just announcing on the last tunnel looked at in the loop
much above.
This commit is contained in:
Samuel Thibault 2024-01-18 11:52:32 +01:00
parent e6a933153d
commit 2229ac6a8a

View file

@ -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;
}