diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-04-18 11:24:47 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-04-18 11:25:12 +0300 |
commit | 40c8be9c74e4cd84c42b3bc16cf90bdeeb41146a (patch) | |
tree | d3e9d41c662dd079ef14d9623af280d35cdd8bad /accel-pppd/ctrl/ipoe/ipoe.h | |
parent | 93f23fa747c40f2f7fc0d305d340d8d6a67d25f2 (diff) | |
download | accel-ppp-xebd-40c8be9c74e4cd84c42b3bc16cf90bdeeb41146a.tar.gz accel-ppp-xebd-40c8be9c74e4cd84c42b3bc16cf90bdeeb41146a.zip |
ipoe: implemented soft session termination
Soft termination means that session won't be terminated immediately, but marked as terminated
and when client will request for lease renewal it will be NAKed and session will be terminated at this time.
By default soft termination is turned off, to enable it introduces new option 'soft-terminate=1'.
Also cli command 'terminate <session> hard' terminates session immediatly regardless of 'soft-terminate' option.
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.h')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.h b/accel-pppd/ctrl/ipoe/ipoe.h index 72da499..c27acdd 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.h +++ b/accel-pppd/ctrl/ipoe/ipoe.h @@ -95,6 +95,7 @@ struct ipoe_session { int relay_addr:1; int l4_redirect:1; int l4_redirect_set:1; + int terminate:1; }; struct ipoe_session_info { |