diff options
author | Hans Dedecker <hans.dedecker@technicolor.com> | 2014-01-23 10:53:22 +0100 |
---|---|---|
committer | Hans Dedecker <hans.dedecker@technicolor.com> | 2014-01-23 10:53:22 +0100 |
commit | b228e0f242d5ae7f3976215bdb20c1e65be1cd40 (patch) | |
tree | f36e8a51df87a17b9034118edce322875a82d662 /src | |
parent | 5d599d81ff97e1275935fd5c1b6a5991f245cb61 (diff) |
Fix ra_management and ndproxy_routing config overwrite
Set default values for the ra_management and ndproxy_routing
config parameters if no attributes are present and overwrite is
to true.
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c index 8e42ffa..cac2d09 100644 --- a/src/config.c +++ b/src/config.c @@ -454,7 +454,7 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr if ((c = tb[IFACE_ATTR_RA_MANAGEMENT])) iface->managed = blobmsg_get_u32(c); - else + else if (overwrite) iface->managed = 1; if ((c = tb[IFACE_ATTR_RA_OFFLINK])) @@ -475,7 +475,7 @@ 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); - else + else if (overwrite) iface->learn_routes = true; if ((c = tb[IFACE_ATTR_NDPROXY_SLAVE])) |