From 395199fcd4a1dbf8f52f13ec3e19ff568958e8e7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 15 Mar 2012 11:14:04 +0100 Subject: [PATCH] fix ipv6 routes --- interface-ip.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2