diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-03-18 16:01:54 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-03-18 16:01:54 +0400 |
commit | 0052d20e94d87016e71cf9ae6c8d9329577eb74b (patch) | |
tree | 6efc8efc0b3c22762234f4a08d860e2a2edab589 /accel-pppd/ctrl/ipoe | |
parent | df6157aee109d7642a9c8c054bc9778f04007f05 (diff) | |
download | accel-ppp-0052d20e94d87016e71cf9ae6c8d9329577eb74b.tar.gz accel-ppp-0052d20e94d87016e71cf9ae6c8d9329577eb74b.zip |
Revert "ipoe: early drop routes when dropping sessions (V2)"
This reverts commit df6157aee109d7642a9c8c054bc9778f04007f05.
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 6d5345e..e7c91b1 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -576,9 +576,6 @@ static void __ipoe_session_activate(struct ipoe_session *ses) { uint32_t addr; - if (ses->terminating) - return; - if (ses->ifindex != -1) { addr = 0; if (!ses->ses.ipv4) @@ -1299,18 +1296,11 @@ static void ipoe_drop_sessions(struct ipoe_serv *serv, struct ipoe_session *skip if (ses == skip) continue; - ses->terminating = 1; - if (ses->ifcfg) { - ipoe_ifcfg_del(ses); - ses->ifcfg = 0; - } - if (ses->ses.state == AP_STATE_ACTIVE) ap_session_ifdown(&ses->ses); triton_context_call(&ses->ctx, (triton_event_func)__terminate, &ses->ses); } - } struct ipoe_serv *ipoe_find_serv(const char *ifname) |