diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-05-22 13:30:30 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-05-22 13:30:30 +0400 |
commit | 0d19e3bbe4ed663c3cdd4aeb666df782cd81c35c (patch) | |
tree | 1a82f853d00ccaa7c4e04da6472658bb9bfc0ad4 /accel-pppd/ctrl/l2tp/l2tp.c | |
parent | cf358fcdc57dd52d30ca490b1164d832cf11fe8b (diff) | |
download | accel-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.c | 5 |
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); |