summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorroot <root@debian11-vyos-build.polycomm.net>2021-12-28 12:58:10 +0300
committerroot <root@debian11-vyos-build.polycomm.net>2021-12-28 12:58:10 +0300
commit2c1250a9185bca63914d0f4da42398240eda5d04 (patch)
tree5c45dd3e715ee0270daa6c0a1df850c826209b7f /accel-pppd
parentcca47ac174d1f2a99ee4969423e2bbc4b2fb6af8 (diff)
downloadaccel-ppp-2c1250a9185bca63914d0f4da42398240eda5d04.tar.gz
accel-ppp-2c1250a9185bca63914d0f4da42398240eda5d04.zip
T22: connection limit for non-shared interfaces by interface index
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index dbc3f19..b6ca46c 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -2081,7 +2081,7 @@ static struct ipoe_session *ipoe_session_create_up(struct ipoe_serv *serv, struc
if (conf_max_sessions && ap_session_stat.active + ap_session_stat.starting >= conf_max_sessions)
return NULL;
- if (connlimit_loaded && connlimit_check(cl_key_from_ipv4(saddr)))
+ if (connlimit_loaded && connlimit_check(serv->opt_shared ? cl_key_from_ipv4(saddr) : serv->ifindex))
return NULL;
if (l4_redirect_list_check(saddr))