diff options
-rw-r--r-- | interface-ip.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |