summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/l2tp/l2tp.c
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2017-01-28 02:59:51 +0500
committerVladislav Grishenko <themiron@mail.ru>2017-12-05 17:33:35 +0500
commitf0829a7a37b991f0e7289e3c8d0140fcf72f9263 (patch)
tree7357287b4e9ac5d0771588a51933208fa3a0e2aa /accel-pppd/ctrl/l2tp/l2tp.c
parent8d7b74ed52922b352a39993ed6856fccf826f25b (diff)
downloadaccel-ppp-f0829a7a37b991f0e7289e3c8d0140fcf72f9263.tar.gz
accel-ppp-f0829a7a37b991f0e7289e3c8d0140fcf72f9263.zip
l2tp: implement adaptive l2tp hello
With incoming l2tp hello there's no need to ask peer for replies in configured hello-interval, so just postpone it. Helps against false-positive echo failures with heavily loaded channels and/or peers.
Diffstat (limited to 'accel-pppd/ctrl/l2tp/l2tp.c')
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c
index 51f8e7dc..a44d31d2 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.c
+++ b/accel-pppd/ctrl/l2tp/l2tp.c
@@ -3213,6 +3213,9 @@ static int l2tp_recv_HELLO(struct l2tp_conn_t *conn,
log_tunnel(log_debug, conn, "handling HELLO\n");
+ if (conn->hello_timer.tpd)
+ triton_timer_mod(&conn->hello_timer, 0);
+
return 0;
}