summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-07-16 14:01:52 +0200
committerSteven Barth <steven@midlink.org>2013-07-16 14:01:52 +0200
commit2674941b06c1ec67f1aff1bff9212e1372106641 (patch)
treefb57db63ed42d3418513099edcd1a3db8277587b
parent5a2ccd7b750162b0d6ee13609f7e1ed5ea827d9d (diff)
IPv6: fix prefix assignment with continuous hints
-rw-r--r--interface-ip.c2
1 files changed, 1 insertions, 1 deletions
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;
}