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:
parent
e6a933153d
commit
2229ac6a8a
1 changed files with 1 additions and 1 deletions
2
l2tpns.c
2
l2tpns.c
|
|
@ -3963,7 +3963,7 @@ static void regular_cleanups(double period)
|
||||||
if (session[s].ppp.phase == Network && session[s].ppp.ipv6cp == Opened &&
|
if (session[s].ppp.phase == Network && session[s].ppp.ipv6cp == Opened &&
|
||||||
(time_now - sess_local[s].last_ra >= RtrAdvInterval))
|
(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;
|
sess_local[s].last_ra = time_now;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue