summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2015-11-18 12:47:27 +0300
committerDmitry Kozlov <xeb@mail.ru>2015-11-18 12:47:27 +0300
commitdd6a897125a984498536466174426b18ed870bcc (patch)
tree5ad33fc1bb4f24a591f575b0a99ac0e988846eb3 /accel-pppd/ctrl/ipoe
parentcc773ecd1776610e8789e72415cb48d2d203712b (diff)
downloadaccel-ppp-dd6a897125a984498536466174426b18ed870bcc.tar.gz
accel-ppp-dd6a897125a984498536466174426b18ed870bcc.zip
ipoe: do not send immediate Accounting Stop in soft terminate mode
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 94ce485..59ea87f 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -1154,7 +1154,7 @@ static void ipoe_session_terminated_pkt(struct dhcpv4_packet *pack)
ipoe_session_terminated(ses);
}
-static void ipoe_session_terminate(struct ap_session *s, int hard)
+static int ipoe_session_terminate(struct ap_session *s, int hard)
{
struct ipoe_session *ses = container_of(s, typeof(*ses), ses);
@@ -1162,6 +1162,8 @@ static void ipoe_session_terminate(struct ap_session *s, int hard)
ipoe_session_terminated(ses);
else
ses->terminate = 1;
+
+ return 0;
}
@@ -3156,7 +3158,7 @@ static void load_config(void)
if (opt)
conf_lease_timeout = atoi(opt);
else
- conf_lease_timeout = 660;
+ conf_lease_timeout = conf_lease_time;
opt = conf_get_opt("ipoe", "unit-cache");
if (opt)