diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-04-05 13:14:44 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-04-05 13:16:37 +0200 |
commit | 8dacaf753b57c703f215b0c844b412b64183ac81 (patch) | |
tree | 240e471c05e1205fd978990675e1ea266642da2c /proto.c | |
parent | f00c15327f25cc68177d0e13f732c2fec54bf1c2 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |