X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=proto-static.c;h=77a536a0cdce2375d8a08e8a4675bb44e0122481;hp=86f2f20d2459f788a9736fa31d837370c13c8939;hb=ceeed831285357d125f71b9a3b4c27de50af49e6;hpb=bfe5db1ea8018aaa940dc6e991110fac62b85516 diff --git a/proto-static.c b/proto-static.c index 86f2f20..77a536a 100644 --- a/proto-static.c +++ b/proto-static.c @@ -33,7 +33,7 @@ struct static_proto_state { static bool static_proto_setup(struct static_proto_state *state) { - return proto_apply_ip_settings(state->proto.iface, state->config, false) == 0; + return proto_apply_static_ip_settings(state->proto.iface, state->config) == 0; } static int @@ -54,6 +54,7 @@ static_handler(struct interface_proto_state *proto, case PROTO_CMD_TEARDOWN: break; } + return ret; }