diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2017-01-28 02:59:51 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2017-12-05 17:33:35 +0500 |
commit | f0829a7a37b991f0e7289e3c8d0140fcf72f9263 (patch) | |
tree | 7357287b4e9ac5d0771588a51933208fa3a0e2aa | |
parent | 8d7b74ed52922b352a39993ed6856fccf826f25b (diff) | |
download | accel-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.
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 51f8e7d..a44d31d 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; } |