projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd02132
)
Kill sessions receiving a ConfReq while closing.
author
Benjamin Cama
<benoar@dolka.fr>
Thu, 7 Jul 2011 11:11:27 +0000
(13:11 +0200)
committer
Benjamin Cama
<benoar@dolka.fr>
Fri, 29 Jul 2011 10:54:55 +0000
(12:54 +0200)
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
ppp.c
patch
|
blob
|
history
diff --git
a/ppp.c
b/ppp.c
index
7942e6e
..
7be79ce
100644
(file)
--- a/
ppp.c
+++ b/
ppp.c
@@
-821,6
+821,10
@@
void processlcp(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
break;
+ case Closing:
+ sessionshutdown(s, "LCP: ConfigReq in state Closing. This should not happen. Killing session.", CDN_ADMIN_DISC, TERM_LOST_SERVICE);
+ break;
+
default:
LOG(2, s, t, "LCP: ignoring %s in state %s\n", ppp_code(*p), ppp_state(session[s].ppp.lcp));
return;