summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/ipoe.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-03-18 15:42:25 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-03-18 15:42:25 +0300
commit546e33e6f4d03f81341c0da91eac9fef8aa94f29 (patch)
treed7974860b077bb2ff84f4f27d47ac513ae636121 /accel-pppd/ctrl/ipoe/ipoe.c
parentcf87269ef49d7f589f1f18c96e5795af8016bdf1 (diff)
downloadaccel-ppp-546e33e6f4d03f81341c0da91eac9fef8aa94f29.tar.gz
accel-ppp-546e33e6f4d03f81341c0da91eac9fef8aa94f29.zip
ipoe: remove interfaces started by vlan_mon if they do not match config (on reload)
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 5e77c726..06ca52f9 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);
}
}