From a667ba53a212dd0bd0a09467036c5db9dfe8bfbb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 18 Jun 2012 23:41:17 +0200 Subject: [PATCH 1/1] add support for using / in route/route6 config sections --- interface-ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface-ip.c b/interface-ip.c index d8d8606..b097c1f 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -220,7 +220,7 @@ interface_ip_add_route(struct interface *iface, struct blob_attr *attr, bool v6) } if ((cur = tb[ROUTE_TARGET]) != NULL) { - if (!inet_pton(af, blobmsg_data(cur), &route->addr)) { + if (!parse_ip_and_netmask(af, blobmsg_data(cur), &route->addr, &route->mask)) { DPRINTF("Failed to parse route target: %s\n", (char *) blobmsg_data(cur)); goto error; } -- 2.11.0