projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e22d6c5
)
add support for using <addr>/<mask> in route/route6 config sections
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 18 Jun 2012 21:41:17 +0000
(23:41 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 18 Jun 2012 21:41:17 +0000
(23:41 +0200)
interface-ip.c
patch
|
blob
|
history
diff --git
a/interface-ip.c
b/interface-ip.c
index d8d8606799e969a54b19db3cb48ef5844d8ed877..b097c1fcdd4cdd28d0b9eccd8dd89f55791d12cd 100644
(file)
--- 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;
}