diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2017-10-09 17:26:34 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2017-10-09 17:26:39 +0300 |
commit | 2635997039354e3f992f5c2d5d18328794e2c44e (patch) | |
tree | 589a9396af29455087255b6e783bea4551b3036c /accel-pppd/session_backup.c | |
parent | be1d17967961af52936d177bb5e426bc2a6b6ef0 (diff) | |
download | accel-ppp-2635997039354e3f992f5c2d5d18328794e2c44e.tar.gz accel-ppp-2635997039354e3f992f5c2d5d18328794e2c44e.zip |
ppp: changed behaviour of lcp-echo-timeout
Now, if lcp-echo-timeout is specified this is considered as idle timeout.
So if link is idling (no any packet was received) in specified interval accel-ppp starts to send LCP Echo-Request with lcp-echo-interval period.
If peer responds to echo request new idle period is being started.
If peer does not responds to lcp-echo-failure attempts accel-ppp terminates session with Acct-Terminate-Cause Lost-Carrier.
If lcp-echo-timeout is not specified or equals zero accel-ppp works in old behaviour (unconditionally sends LCP Echo-Request with lcp-echo-interval period).
This patch intended to prevent unexpected sessions termination due to lcp echo loses.
Diffstat (limited to 'accel-pppd/session_backup.c')
0 files changed, 0 insertions, 0 deletions