From 0f738b8f6c5d89ad5130c74a8dcb9a1df9a190bc Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 29 Apr 2012 13:58:41 +0200 Subject: include route/address flags in vlist comparison --- proto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto.c') diff --git a/proto.c b/proto.c index 246d78e..e77b54f 100644 --- a/proto.c +++ b/proto.c @@ -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; } -- cgit v1.2.1