Allow LCP re-negotiation after connection completes

This commit is contained in:
bodea 2004-11-18 13:15:28 +00:00
parent bfeb31c15e
commit 2455ce5da0
2 changed files with 7 additions and 2 deletions

View file

@ -10,6 +10,7 @@
- Revise nsctl to allow arbitrary strings/args to be passed to plugins. - Revise nsctl to allow arbitrary strings/args to be passed to plugins.
- Add snoopctl, throttlectl plugins. - Add snoopctl, throttlectl plugins.
- Fix deletion from linked list. - Fix deletion from linked list.
- Allow LCP re-negotiation after connection completes (thanks Yuri).
* Mon Nov 15 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.7 * Mon Nov 15 2004 Brendan O'Dea <bod@optusnet.com.au> 2.0.7
- Fix socket creation in host_unreachable() (thanks to Bjørn Augestad) - Fix socket creation in host_unreachable() (thanks to Bjørn Augestad)

6
ppp.c
View file

@ -1,6 +1,6 @@
// L2TPNS PPP Stuff // L2TPNS PPP Stuff
char const *cvs_id_ppp = "$Id: ppp.c,v 1.26 2004/11/16 07:54:32 bodea Exp $"; char const *cvs_id_ppp = "$Id: ppp.c,v 1.27 2004/11/18 13:15:28 bodea Exp $";
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -600,6 +600,10 @@ void processipcp(tunnelidt t, sessionidt s, u8 *p, u16 l)
session[s].flags |= SF_IPCP_ACKED; session[s].flags |= SF_IPCP_ACKED;
LOG(3, session[s].ip, s, t, "IPCP Acked, session is now active\n"); LOG(3, session[s].ip, s, t, "IPCP Acked, session is now active\n");
// clear LCP_ACKED flag for possible fast renegotiaion for routers
session[s].flags &= ~SF_LCP_ACKED;
return; return;
} }
if (*p != ConfigReq) if (*p != ConfigReq)