From 7034e6a018bd34f047db4f1fb7c60f076bd40471 Mon Sep 17 00:00:00 2001 From: fendo Date: Sat, 14 Jan 2017 14:03:34 +0100 Subject: [PATCH] Sending IPv6_ra more often. --- debian/changelog | 7 +++++++ dhcp6.c | 1 + l2tpns.h | 2 +- ppp.c | 3 +++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index fb7e270..4242297 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +l2tpns (2.2.1.2fdn3.19) unstable; urgency=low + + * New revision format. + * Sending IPv6_ra more often. + + -- Fernando Alves Tue, 31 Dec 2016 17:15:04 +0200 + l2tpns (2.2.1-2fdn3.18) unstable; urgency=low * Add of the ppp_keepalive option. diff --git a/dhcp6.c b/dhcp6.c index 171c1f0..b543926 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -459,6 +459,7 @@ void dhcpv6_process(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l) } dhcp6_send_reply(s, t, &p_ip6_hdr_in->ip6_src); + send_ipv6_ra(s, t, &p_ip6_hdr_in->ip6_src); // send a RA } break; diff --git a/l2tpns.h b/l2tpns.h index 9520fd7..7432a83 100644 --- a/l2tpns.h +++ b/l2tpns.h @@ -15,7 +15,7 @@ #include #include -#define VERSION "2.2.1-2fdn3.13" +#define VERSION "2.2.1.2fdn3.19" // Limits #define MAXTUNNEL 500 // could be up to 65535 diff --git a/ppp.c b/ppp.c index 21f5985..87ec0e8 100644 --- 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) { -- 2.20.1