break LCP configure loop with shutdown

This commit is contained in:
bodea 2005-12-15 14:23:03 +00:00
parent e68cca06cf
commit 225f5be34c
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,7 @@
* Fri Dec 16 2005 Brendan O'Dea <bod@optus.net> 2.1.15 * Fri Dec 16 2005 Brendan O'Dea <bod@optus.net> 2.1.15
- Drop backtrace. - Drop backtrace.
- Reduce logging of LCP EchoReply packets. - Reduce logging of LCP EchoReply packets.
- Break LCP configure loop with shutdown.
* Fri Dec 9 2005 Brendan O'Dea <bod@optus.net> 2.1.14 * Fri Dec 9 2005 Brendan O'Dea <bod@optus.net> 2.1.14
- Run PLUGIN_RADIUS_ACCOUNT for Start records. - Run PLUGIN_RADIUS_ACCOUNT for Start records.

3
ppp.c
View file

@ -1,6 +1,6 @@
// L2TPNS PPP Stuff // L2TPNS PPP Stuff
char const *cvs_id_ppp = "$Id: ppp.c,v 1.90 2005/12/15 14:18:16 bodea Exp $"; char const *cvs_id_ppp = "$Id: ppp.c,v 1.91 2005/12/15 14:23:03 bodea Exp $";
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -796,6 +796,7 @@ void processlcp(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
default: default:
LOG(2, s, t, "LCP: remote sent %s for type %u?\n", ppp_code(*p), type); LOG(2, s, t, "LCP: remote sent %s for type %u?\n", ppp_code(*p), type);
sessionshutdown(s, "Unable to negotiate LCP.", 3, 0);
break; break;
} }
x -= length; x -= length;