diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-04-29 13:58:41 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-04-29 14:02:24 +0200 |
commit | 0f738b8f6c5d89ad5130c74a8dcb9a1df9a190bc (patch) | |
tree | 6e3c3bc9dd4d0bb19cec73ce2b1b0d218a21f861 /proto.c | |
parent | 8a1a1dda9cfff45a7cd48f5d108d0174fadd84ee (diff) | |
download | netifd-0f738b8f6c5d89ad5130c74a8dcb9a1df9a190bc.tar.gz |
include route/address flags in vlist comparison
Diffstat (limited to 'proto.c')
-rw-r--r-- | proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -142,7 +142,7 @@ parse_addr(struct interface *iface, const char *str, bool v6, int mask, if (ext) addr->flags |= DEVADDR_EXTERNAL; - vlist_add(&iface->proto_ip.addr, &addr->node, &addr->mask); + vlist_add(&iface->proto_ip.addr, &addr->node, &addr->flags); return true; } @@ -184,7 +184,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->mask); + vlist_add(&iface->proto_ip.route, &route->node, &route->flags); return true; } |