Sending IPv6_ra more often.

This commit is contained in:
fendo 2017-01-14 14:03:34 +01:00
parent c9888dc111
commit 7034e6a018
4 changed files with 12 additions and 1 deletions

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
l2tpns (2.2.1.2fdn3.19) unstable; urgency=low
* New revision format.
* Sending IPv6_ra more often.
-- Fernando Alves <fendo@sameswifi.fr> Tue, 31 Dec 2016 17:15:04 +0200
l2tpns (2.2.1-2fdn3.18) unstable; urgency=low l2tpns (2.2.1-2fdn3.18) unstable; urgency=low
* Add of the ppp_keepalive option. * Add of the ppp_keepalive option.

View file

@ -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); 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; break;

View file

@ -15,7 +15,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <libcli.h> #include <libcli.h>
#define VERSION "2.2.1-2fdn3.13" #define VERSION "2.2.1.2fdn3.19"
// Limits // Limits
#define MAXTUNNEL 500 // could be up to 65535 #define MAXTUNNEL 500 // could be up to 65535

3
ppp.c
View file

@ -1103,6 +1103,9 @@ void processlcp(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
if (config->debug > 3) dumplcp(q, l); if (config->debug > 3) dumplcp(q, l);
tunnelsend(b, l + (q - b), t); // send it 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) else if (*p == EchoReply)
{ {