From 546e33e6f4d03f81341c0da91eac9fef8aa94f29 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 18 Mar 2016 15:42:25 +0300 Subject: ipoe: remove interfaces started by vlan_mon if they do not match config (on reload) --- accel-pppd/ctrl/ipoe/ipoe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'accel-pppd/ctrl/ipoe/ipoe.c') diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 5e77c72..06ca52f 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -2729,9 +2729,10 @@ static void load_interfaces(struct conf_sect_t *sect) } list_for_each_entry(serv, &serv_list, entry) { - if (!serv->active && !serv->vid) { + if (!serv->active) { ipoe_nl_del_interface(serv->ifindex); ipoe_drop_sessions(serv, NULL); + serv->need_close = 1; triton_context_call(&serv->ctx, (triton_event_func)ipoe_serv_release, serv); } } -- cgit v1.2.3