[OpenWrt-Devel] [PATCH v2 netifd] interface: fix "if-down" hotplug event handling
Hans Dedecker
dedeckeh at gmail.com
Fri Apr 12 08:47:36 EDT 2019
On Fri, Apr 12, 2019 at 9:19 AM Martin Schiller <ms at dev.tdt.de> wrote:
>
> commit a97297d83e42 ("interface: set interface in TEARDOWN state when checking link state")
> broke the if-down hotplug event handling, as the iface->state is now IFS_TEARDOWN when
> calling the mark_interface_down() function from the IFPEV_DOWN event.
>
> Fixes: a97297d83e42 ("interface: set interface in TEARDOWN state when checking link state")
> Signed-off-by: Martin Schiller <ms at dev.tdt.de>
Patch applied; thx
Hans
> ---
> interface.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/interface.c b/interface.c
> index fd7a826..e0652cd 100644
> --- a/interface.c
> +++ b/interface.c
> @@ -269,6 +269,7 @@ mark_interface_down(struct interface *iface)
> iface->state = IFS_DOWN;
> switch (state) {
> case IFS_UP:
> + case IFS_TEARDOWN:
> interface_event(iface, IFEV_DOWN);
> break;
> case IFS_SETUP:
> --
> 2.11.0
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list