diff options
-rw-r--r-- | interface.c | 8 | ||||
-rw-r--r-- | interface.h | 2 | ||||
-rw-r--r-- | ubus.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/interface.c b/interface.c index 6223e05..2cbe9ec 100644 --- a/interface.c +++ b/interface.c @@ -119,7 +119,7 @@ __interface_set_up(struct interface *iface) } static void -__set_interface_down(struct interface *iface, bool force) +__interface_set_down(struct interface *iface, bool force) { clear_interface_errors(iface); @@ -161,7 +161,7 @@ interface_cb(struct device_user *dep, enum device_event ev) if (iface->autostart && !config_init) interface_set_up(iface); } else - __set_interface_down(iface, true); + __interface_set_down(iface, true); } static void @@ -312,10 +312,10 @@ interface_set_up(struct interface *iface) } int -set_interface_down(struct interface *iface) +interface_set_down(struct interface *iface) { iface->autostart = false; - __set_interface_down(iface, false); + __interface_set_down(iface, false); return 0; } diff --git a/interface.h b/interface.h index a5c7477..61189a1 100644 --- a/interface.h +++ b/interface.h @@ -66,7 +66,7 @@ void free_interface(struct interface *iface); void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state); int interface_set_up(struct interface *iface); -int set_interface_down(struct interface *iface); +int interface_set_down(struct interface *iface); int interface_add_link(struct interface *iface, struct device *llif); void interface_remove_link(struct interface *iface, struct device *llif); @@ -106,7 +106,7 @@ static int netifd_handle_down(struct ubus_context *ctx, struct ubus_object *obj, struct interface *iface; iface = container_of(obj, struct interface, ubus); - set_interface_down(iface); + interface_set_down(iface); return 0; } |