IPv6: Reverse assignment sorting order
authorSteven Barth <steven@midlink.org>
Mon, 17 Jun 2013 21:28:30 +0000 (23:28 +0200)
committerSteven Barth <steven@midlink.org>
Mon, 17 Jun 2013 21:28:30 +0000 (23:28 +0200)
interface-ip.c

index 3b6be6b6aa803412bd48ac68d18c1e032279cf54..6698bac9ffeeb3bd8ef058ce640c2a637cd9d92e 100644 (file)
@@ -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;
                                }