summaryrefslogtreecommitdiff
path: root/accel-pppd/include
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-04-18 20:42:32 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-04-18 20:42:32 +0300
commit88a908974b0b2e9c7eee8ad9a8b0b4432e95d167 (patch)
treec347a8a2aca1d4ef069862fac4c131c31a501ceb /accel-pppd/include
parentc94c49114ca6c6dd342dad0db525050a154f7a0e (diff)
downloadaccel-ppp-88a908974b0b2e9c7eee8ad9a8b0b4432e95d167.tar.gz
accel-ppp-88a908974b0b2e9c7eee8ad9a8b0b4432e95d167.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.h1
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);