netifd: propagate error code on netifd_reload() The context is that we generate some of the UCI config for netifd via scripts/programs. Every once in a while, there's a goof when doing that UCI generation, and netifd prints out the error at stderr, but returns 0 (success) err-code. This change will fail the ubus call if UCI config is invalid or missing for /etc/config/network. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> Acked-by: Hans Dedecker <dedeckeh@gmail.com>
config: use the new uci_blob library code Signed-off-by: Felix Fietkau <nbd@openwrt.org>
config: replace config_memdup with blob_memdup from libubox Signed-off-by: Felix Fietkau <nbd@openwrt.org>
add copyright headers
rename config_init_interfaces to config_init_all
remove the argument to config_init_interfaces
more changes for config reload handling
add functions for checking for config differences
manage interfaces via vlist
move more stuff out of netifd.h
constify
add config state tracking
add support for multiple config_param_list::next pointers
implement uci-to-blobmsg conversion as an abstraction between uci and the rest of netifd