From: Felix Fietkau Date: Thu, 15 Mar 2012 10:14:04 +0000 (+0100) Subject: fix ipv6 routes X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=395199fcd4a1dbf8f52f13ec3e19ff568958e8e7;p=project%2Fnetifd.git fix ipv6 routes --- diff --git a/interface-ip.c b/interface-ip.c index 3204cd9..170b03b 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -64,6 +64,7 @@ interface_ip_add_route(struct interface *iface, struct blob_attr *attr, bool v6) if (!route) return; + route->flags = v6 ? DEVADDR_INET6 : DEVADDR_INET4; route->mask = v6 ? 128 : 32; if ((cur = tb[ROUTE_MASK]) != NULL) { route->mask = parse_netmask_string(blobmsg_data(cur), v6);