diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-08-17 15:55:00 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-08-17 16:10:10 +0200 |
commit | de394b30b895acc7b4cd4d5ddc78e4710747e613 (patch) | |
tree | ad1694f07c308d13c63d83f80a48b3da2617be0e /interface.c | |
parent | 522456b9f3ab07a78de17bf693abead4a296b028 (diff) |
interface: ensure NO_DEVICE error is always reported
Remove interface available checks in the functions interface_start_pending
and interface_handle_config_change so the NO_DEVICE error is reported in
ifstatus <interface> making it clear to the user the configured device in
ifname is not found
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface.c b/interface.c index e32f08a..6be10e2 100644 --- a/interface.c +++ b/interface.c @@ -695,7 +695,7 @@ interface_handle_config_change(struct interface *iface) interface_do_free(iface); return; } - if (iface->autostart && iface->available) + if (iface->autostart) interface_set_up(iface); else if (iface->dynamic) set_config_state(iface, IFC_REMOVE); @@ -1103,7 +1103,7 @@ interface_start_pending(void) struct interface *iface; vlist_for_each_element(&interfaces, iface, node) { - if (iface->available && iface->autostart) + if (iface->autostart) interface_set_up(iface); } } |