X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=proto-static.c;h=77a536a0cdce2375d8a08e8a4675bb44e0122481;hp=be68e8e680c7b88d4d47a74648f2d627760f0e54;hb=2674941b06c1ec67f1aff1bff9212e1372106641;hpb=a3606a74c672ef6471c006d15262dbb8ea60d025 diff --git a/proto-static.c b/proto-static.c index be68e8e..77a536a 100644 --- a/proto-static.c +++ b/proto-static.c @@ -1,3 +1,16 @@ +/* + * netifd - network interface daemon + * Copyright (C) 2012 Felix Fietkau + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 + * as published by the Free Software Foundation + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ #include #include #include @@ -20,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 @@ -41,6 +54,7 @@ static_handler(struct interface_proto_state *proto, case PROTO_CMD_TEARDOWN: break; } + return ret; }