From 2674941b06c1ec67f1aff1bff9212e1372106641 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 16 Jul 2013 14:01:52 +0200 Subject: IPv6: fix prefix assignment with continuous hints --- interface-ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interface-ip.c') diff --git a/interface-ip.c b/interface-ip.c index 6698bac..29db745 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -639,7 +639,7 @@ static bool interface_prefix_assign(struct list_head *list, struct device_prefix_assignment *c; list_for_each_entry(c, list, head) { if (assign->assigned != -1) { - if (assign->assigned > current && assign->assigned + asize < c->assigned) { + if (assign->assigned >= current && assign->assigned + asize < c->assigned) { list_add_tail(&assign->head, &c->head); return true; } -- cgit v1.2.3