summaryrefslogtreecommitdiffhomepage
path: root/proto.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-04-05 13:14:44 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-04-05 13:16:37 +0200
commit8dacaf753b57c703f215b0c844b412b64183ac81 (patch)
tree240e471c05e1205fd978990675e1ea266642da2c /proto.c
parentf00c15327f25cc68177d0e13f732c2fec54bf1c2 (diff)
fix route sorting order
New sorting order: - prefix length (descending) - metric (ascending) - flags - target address Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'proto.c')
-rw-r--r--proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto.c b/proto.c
index 1d277c9..634d31b 100644
--- a/proto.c
+++ b/proto.c
@@ -251,7 +251,7 @@ parse_gateway_option(struct interface *iface, struct blob_attr *attr, bool v6)
route->mask = 0;
route->flags = (v6 ? DEVADDR_INET6 : DEVADDR_INET4);
- vlist_add(&iface->proto_ip.route, &route->node, &route->flags);
+ vlist_add(&iface->proto_ip.route, &route->node, route);
return true;
}