From 829e5b573bb736cc17f0fbd3f680b74b5b6a4493 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Mon, 28 May 2018 13:07:01 +0300 Subject: ipoe: do not bring interface down on session termination in shared=0 mode --- accel-pppd/ctrl/ipoe/ipoe.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'accel-pppd/ctrl') diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 8bedfc4..b48e1f2 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -1244,6 +1244,9 @@ static int ipoe_session_terminate(struct ap_session *s, int hard) { struct ipoe_session *ses = container_of(s, typeof(*ses), ses); + if (ses->ifindex == -1) + ses->ctrl.dont_ifcfg = 1; + if (hard || !conf_soft_terminate || ses->UP || ap_shutdown) ipoe_session_terminated(ses); else -- cgit v1.2.3