projects
/
project
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9cd9c3b
)
Learn routes in NDP-proxy by default
author
Steven Barth
<steven@midlink.org>
Fri, 3 Jan 2014 11:04:15 +0000
(12:04 +0100)
committer
Steven Barth
<steven@midlink.org>
Fri, 3 Jan 2014 11:04:15 +0000
(12:04 +0100)
README
patch
|
blob
|
history
src/config.c
patch
|
blob
|
history
diff --git
a/README
b/README
index
0d59952
..
58085e3
100644
(file)
--- a/
README
+++ b/
README
@@
-100,7
+100,7
@@
ra_management integer 1 RA management mode
ra_offlink bool 0 Announce prefixes off-link
ra_preference string medium Route(r) preference
[medium|high|low]
ra_offlink bool 0 Announce prefixes off-link
ra_preference string medium Route(r) preference
[medium|high|low]
-ndproxy_routing bool
0
Learn routes from NDP
+ndproxy_routing bool
1
Learn routes from NDP
ndproxy_slave bool 0 NDProxy external slave
ndproxy_static list Static NDProxy prefixes
ndproxy_slave bool 0 NDProxy external slave
ndproxy_static list Static NDProxy prefixes
diff --git
a/src/config.c
b/src/config.c
index
38a3e7a
..
1428686
100644
(file)
--- a/
src/config.c
+++ b/
src/config.c
@@
-470,6
+470,8
@@
int config_parse_interface(void *data, size_t len, const char *name, bool overwr
if ((c = tb[IFACE_ATTR_NDPROXY_ROUTING]))
iface->learn_routes = blobmsg_get_bool(c);
if ((c = tb[IFACE_ATTR_NDPROXY_ROUTING]))
iface->learn_routes = blobmsg_get_bool(c);
+ else
+ iface->learn_routes = true;
if ((c = tb[IFACE_ATTR_NDPROXY_SLAVE]))
iface->external = blobmsg_get_bool(c);
if ((c = tb[IFACE_ATTR_NDPROXY_SLAVE]))
iface->external = blobmsg_get_bool(c);