diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2018-05-28 13:07:01 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2018-05-28 13:07:01 +0300 |
commit | 829e5b573bb736cc17f0fbd3f680b74b5b6a4493 (patch) | |
tree | 36eb49496a96d430d2e4e8804ebeb685bef5d4c3 /accel-pppd/ctrl | |
parent | 2f19bf6a0bccd8f0b5617ed99ff9efec5001a49a (diff) | |
download | accel-ppp-829e5b573bb736cc17f0fbd3f680b74b5b6a4493.tar.gz accel-ppp-829e5b573bb736cc17f0fbd3f680b74b5b6a4493.zip |
ipoe: do not bring interface down on session termination in shared=0 mode
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |