提交 b5fee831 编写于 作者: D Dmitry Kozlov

ipoe: arp: fixed hash value calculation in arpd_stop

上级 decb3de4
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册