summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/l2tp/l2tp.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-04-18 20:32:22 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-04-18 20:32:22 +0300
commitc94c49114ca6c6dd342dad0db525050a154f7a0e (patch)
tree7ebb75e44f5d1a338aa1fe1a0171d5c7ddc9e61c /accel-pppd/ctrl/l2tp/l2tp.c
parent09afd3a638be4c64aee0d36bbfa1e45bbaa2ec51 (diff)
downloadaccel-ppp-c94c49114ca6c6dd342dad0db525050a154f7a0e.tar.gz
accel-ppp-c94c49114ca6c6dd342dad0db525050a154f7a0e.zip
Revert "implemented session count limiting"
This reverts commit 9ea88bac7d5bf8fc5cf2d5f7d0a734ec7a9e6df6.
Diffstat (limited to 'accel-pppd/ctrl/l2tp/l2tp.c')
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c
index 6399655e..bb3df4d4 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.c
+++ b/accel-pppd/ctrl/l2tp/l2tp.c
@@ -2737,9 +2737,6 @@ static int l2tp_recv_SCCRQ(const struct l2tp_serv_t *serv,
return 0;
}
- if (conf_max_sessions && ap_session_stat.active + ap_session_stat.starting > conf_max_sessions)
- return 0;
-
if (triton_module_loaded("connlimit")
&& connlimit_check(cl_key_from_ipv4(pack->addr.sin_addr.s_addr))) {
log_warn("l2tp: connection limits reached,"
@@ -3266,9 +3263,6 @@ static int l2tp_recv_ICRQ(struct l2tp_conn_t *conn,
return 0;
}
- if (conf_max_sessions && ap_session_stat.active + ap_session_stat.starting > conf_max_sessions)
- return 0;
-
if (triton_module_loaded("connlimit")
&& connlimit_check(cl_key_from_ipv4(conn->peer_addr.sin_addr.s_addr))) {
log_tunnel(log_warn, conn, "connection limits reached,"
@@ -3569,9 +3563,6 @@ static int l2tp_recv_OCRQ(struct l2tp_conn_t *conn,
return 0;
}
- if (conf_max_sessions && ap_session_stat.active + ap_session_stat.starting > conf_max_sessions)
- return 0;
-
if (triton_module_loaded("connlimit")
&& connlimit_check(cl_key_from_ipv4(conn->peer_addr.sin_addr.s_addr))) {
log_tunnel(log_warn, conn, "connection limits reached,"