projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a default route in the dummy ppp.sh implementation to debug default route handlin...
[project/netifd.git]
/
proto.c
diff --git
a/proto.c
b/proto.c
index
1747658
..
246d78e
100644
(file)
--- a/
proto.c
+++ b/
proto.c
@@
-142,7
+142,7
@@
parse_addr(struct interface *iface, const char *str, bool v6, int mask,
if (ext)
addr->flags |= DEVADDR_EXTERNAL;
if (ext)
addr->flags |= DEVADDR_EXTERNAL;
- vlist_add(&iface->proto_ip.addr, &addr->node);
+ vlist_add(&iface->proto_ip.addr, &addr->node
, &addr->mask
);
return true;
}
return true;
}
@@
-183,8
+183,8
@@
parse_gateway_option(struct interface *iface, struct blob_attr *attr, bool v6)
}
route->mask = 0;
}
route->mask = 0;
- route->flags =
DEVADDR_DEVICE |
(v6 ? DEVADDR_INET6 : DEVADDR_INET4);
- vlist_add(&iface->proto_ip.route, &route->node);
+ route->flags = (v6 ? DEVADDR_INET6 : DEVADDR_INET4);
+ vlist_add(&iface->proto_ip.route, &route->node
, &route->mask
);
return true;
}
return true;
}