summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-05-18 03:07:25 +0000
committerDmitry Kozlov <xeb@mail.ru>2014-05-18 03:07:25 +0000
commitc87cad6b0e447bcd77d1c450fbd11f429cb84cc5 (patch)
tree0ad9023f8bea2f8e6d9e53f49281320d31624dd1 /accel-pppd/ctrl/ipoe
parentd3a17940de818452970a80cb7dba7a793f8ee1e2 (diff)
downloadaccel-ppp-c87cad6b0e447bcd77d1c450fbd11f429cb84cc5.tar.gz
accel-ppp-c87cad6b0e447bcd77d1c450fbd11f429cb84cc5.zip
ipoe: use ifindex as connlimit key for non-shared interfaces
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-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 a7db155b..af27e308 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -1278,7 +1278,7 @@ static void __ipoe_recv_dhcpv4(struct dhcpv4_serv *dhcpv4, struct dhcpv4_packet
if (ap_shutdown)
return;
- if (connlimit_loaded && pack->msg_type == DHCPDISCOVER && connlimit_check(cl_key_from_mac(pack->hdr->chaddr)))
+ if (connlimit_loaded && pack->msg_type == DHCPDISCOVER && connlimit_check(serv->opt_shared ? cl_key_from_mac(pack->hdr->chaddr) : serv->ifindex))
return;
pthread_mutex_lock(&serv->lock);