diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2017-04-18 16:07:35 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2017-04-18 16:12:13 +0300 |
commit | 9ea88bac7d5bf8fc5cf2d5f7d0a734ec7a9e6df6 (patch) | |
tree | 252abd7360053dcfb57234ff64785e354a85e620 /accel-pppd/include | |
parent | 29e80de7214199500b56e4ac3a667a40df1a7f20 (diff) | |
download | accel-ppp-9ea88bac7d5bf8fc5cf2d5f7d0a734ec7a9e6df6.tar.gz accel-ppp-9ea88bac7d5bf8fc5cf2d5f7d0a734ec7a9e6df6.zip |
implemented session count limiting
new config option:
[common]
max-sessions=N
If set then accel-pppd stops reply to new connection requests if total number of sessions (active and starting) is reached specified limit.
Diffstat (limited to 'accel-pppd/include')
-rw-r--r-- | accel-pppd/include/ap_session.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/include/ap_session.h b/accel-pppd/include/ap_session.h index 82e7e8c..421360d 100644 --- a/accel-pppd/include/ap_session.h +++ b/accel-pppd/include/ap_session.h @@ -130,6 +130,7 @@ extern int sock_fd; extern int sock6_fd; extern int urandom_fd; extern struct ap_session_stat ap_session_stat; +extern int conf_max_sessions; void ap_session_init(struct ap_session *ses); void ap_session_set_ifindex(struct ap_session *ses); |