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:
a63479a
)
fix ipv6 routes
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 15 Mar 2012 10:14:04 +0000
(11:14 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 15 Mar 2012 10:14:04 +0000
(11:14 +0100)
interface-ip.c
patch
|
blob
|
history
diff --git
a/interface-ip.c
b/interface-ip.c
index 3204cd9da4a806165deada04dbce536cac699c0d..170b03b089d7b8214513bfe9362b24d333d468c6 100644
(file)
--- 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);