summaryrefslogtreecommitdiffhomepage
path: root/interface-ip.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-06-17 23:28:30 +0200
committerSteven Barth <steven@midlink.org>2013-06-17 23:28:30 +0200
commit0b154730c1c2bb9ca73a23c46a9e46b8adf89d36 (patch)
tree7e109c46ce169e396424d19e6b7c6cf294bf43f6 /interface-ip.c
parent3c2c1bd38a577130848167093bf45eee0535f32a (diff)
IPv6: Reverse assignment sorting order
Diffstat (limited to 'interface-ip.c')
-rw-r--r--interface-ip.c2
1 files changed, 1 insertions, 1 deletions
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;
}