Page MenuHome Accel-ppp

Connection limit for non-shared interfaces by interface index
Closed, ResolvedPublicFEATURE REQUEST

Description

Please accept the patch

diff -NPur accel-ppp.orig/accel-pppd/ctrl/ipoe/ipoe.c accel-ppp/accel-pppd/ctrl/ipoe/ipoe.c
--- accel-ppp.orig/accel-pppd/ctrl/ipoe/ipoe.c  2020-07-23 12:16:49.977388790 +0300
+++ accel-ppp/accel-pppd/ctrl/ipoe/ipoe.c       2020-07-23 12:30:18.239298289 +0300
@@ -2055,7 +2055,7 @@
        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;

Details

Protocol
IPoE
Version
-

Event Timeline

themiron changed the task status from Open to Confirmed.Oct 6 2020, 18:54
themiron added a subscriber: themiron.

Sure, please open PR with the changes and description here https://github.com/accel-ppp/accel-ppp

Dimka88 claimed this task.