diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-05-18 03:07:25 +0000 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-05-18 03:07:25 +0000 |
commit | c87cad6b0e447bcd77d1c450fbd11f429cb84cc5 (patch) | |
tree | 0ad9023f8bea2f8e6d9e53f49281320d31624dd1 /accel-pppd | |
parent | d3a17940de818452970a80cb7dba7a793f8ee1e2 (diff) | |
download | accel-ppp-c87cad6b0e447bcd77d1c450fbd11f429cb84cc5.tar.gz accel-ppp-c87cad6b0e447bcd77d1c450fbd11f429cb84cc5.zip |
ipoe: use ifindex as connlimit key for non-shared interfaces
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 2 |
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); |