Sending IPv6_ra more often.
[l2tpns.git] / ppp.c
diff --git a/ppp.c b/ppp.c
index 21f5985..87ec0e8 100644 (file)
--- a/ppp.c
+++ b/ppp.c
@@ -1103,6 +1103,9 @@ void processlcp(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
                if (config->debug > 3) dumplcp(q, l);
 
                tunnelsend(b, l + (q - b), t); // send it
+
+               if (session[s].ppp.phase == Network && session[s].ppp.ipv6cp == Opened)
+                       send_ipv6_ra(s, t, NULL); // send a RA
        }
        else if (*p == EchoReply)
        {