From b5fee831eedf9ea8282aa35f12053c1b1ebaf29d Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Thu, 19 Nov 2015 09:37:35 +0300 Subject: ipoe: arp: fixed hash value calculation in arpd_stop --- accel-pppd/ctrl/ipoe/arp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel-pppd/ctrl/ipoe/arp.c b/accel-pppd/ctrl/ipoe/arp.c index 6c647f1c..96996246 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); -- cgit v1.2.3