Set default values for the ra_management and ndproxy_routing
config parameters if no attributes are present and overwrite is
to true.
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]))
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]))