summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2015-11-19 09:37:35 +0300
committerDmitry Kozlov <xeb@mail.ru>2015-11-19 09:37:35 +0300
commitb5fee831eedf9ea8282aa35f12053c1b1ebaf29d (patch)
tree0c545f68065210309e226e1c10cc930ef560c8a7 /accel-pppd
parentdecb3de44c59f789e49250c4d2791e4219078b54 (diff)
downloadaccel-ppp-b5fee831eedf9ea8282aa35f12053c1b1ebaf29d.tar.gz
accel-ppp-b5fee831eedf9ea8282aa35f12053c1b1ebaf29d.zip
ipoe: arp: fixed hash value calculation in arpd_stop
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/arp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/arp.c b/accel-pppd/ctrl/ipoe/arp.c
index 6c647f1..9699624 100644
--- a/accel-pppd/ctrl/ipoe/arp.c
+++ b/accel-pppd/ctrl/ipoe/arp.c
@@ -253,7 +253,7 @@ void *arpd_start(struct ipoe_serv *ipoe)
void arpd_stop(void *arg)
{
struct arp_node *n = arg;
- struct arp_tree *t = &arp_tree[n->ipoe->ifindex];
+ struct arp_tree *t = &arp_tree[n->ipoe->ifindex & HASH_BITS];
pthread_mutex_lock(&t->lock);
rb_erase(&n->node, &t->root);