From 0b154730c1c2bb9ca73a23c46a9e46b8adf89d36 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 17 Jun 2013 23:28:30 +0200 Subject: [PATCH] IPv6: Reverse assignment sorting order --- interface-ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface-ip.c b/interface-ip.c index 3b6be6b..6698bac 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -733,7 +733,7 @@ static void interface_update_prefix_assignments(struct device_prefix *prefix, bo struct list_head *next = &assign_later; struct device_prefix_assignment *n; list_for_each_entry(n, &assign_later, head) { - if (n->length > c->length) { + if (n->length < c->length) { next = &n->head; break; } -- 2.25.1