summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/l2tp/l2tp.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-05-22 13:30:30 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-05-22 13:30:30 +0400
commit0d19e3bbe4ed663c3cdd4aeb666df782cd81c35c (patch)
tree1a82f853d00ccaa7c4e04da6472658bb9bfc0ad4 /accel-pppd/ctrl/l2tp/l2tp.c
parentcf358fcdc57dd52d30ca490b1164d832cf11fe8b (diff)
downloadaccel-ppp-xebd-0d19e3bbe4ed663c3cdd4aeb666df782cd81c35c.tar.gz
accel-ppp-xebd-0d19e3bbe4ed663c3cdd4aeb666df782cd81c35c.zip
Some AVP we are not handling yet, and it is better to provide option
to ignore them, instead of refusing connection. Signed-off-by: Denys Fedoryshchenko <denys@visp.net.lb>
Diffstat (limited to 'accel-pppd/ctrl/l2tp/l2tp.c')
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c
index 50523cf..d8a98f8 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.c
+++ b/accel-pppd/ctrl/l2tp/l2tp.c
@@ -47,6 +47,7 @@
#define STATE_CLOSE 0
int conf_verbose = 0;
+int conf_avp_permissive = 0;
static int conf_timeout = 60;
static int conf_rtimeout = 5;
static int conf_retransmit = 5;
@@ -1157,6 +1158,10 @@ static void load_config(void)
if (opt && atoi(opt) > 0)
conf_verbose = 1;
+ opt = conf_get_opt("l2tp", "avp_permissive");
+ if (opt && atoi(opt) > 0)
+ conf_avp_permissive = 1;
+
opt = conf_get_opt("l2tp", "hello-interval");
if (opt && atoi(opt) > 0)
conf_hello_interval = atoi(opt);