}
static int
-__set_interface_up(struct interface *iface)
+__interface_set_up(struct interface *iface)
{
int ret;
if (new_state) {
if (iface->autostart && !config_init)
- set_interface_up(iface);
+ interface_set_up(iface);
} else
__set_interface_down(iface, true);
}
}
int
-set_interface_up(struct interface *iface)
+interface_set_up(struct interface *iface)
{
iface->autostart = true;
if (iface->state != IFS_DOWN)
return 0;
- return __set_interface_up(iface);
+ return __interface_set_up(iface);
}
int
list_for_each_entry(iface, &interfaces, list) {
if (iface->active && iface->autostart)
- set_interface_up(iface);
+ interface_set_up(iface);
}
}
void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state);
-int set_interface_up(struct interface *iface);
+int interface_set_up(struct interface *iface);
int set_interface_down(struct interface *iface);
int interface_add_link(struct interface *iface, struct device *llif);
struct interface *iface;
iface = container_of(obj, struct interface, ubus);
- set_interface_up(iface);
+ interface_set_up(iface);
return 0;
}