diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-05-18 01:04:19 +0000 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-05-18 02:15:25 +0000 |
commit | d5c3630d92b329735048b228878bb3ae137799cc (patch) | |
tree | 2e7ae38e67170ef8f7ce502e40e3d6fbecd06903 /accel-pppd/include | |
parent | ec41e172a9da0de7cf5c28027928c698d0d1ebf8 (diff) | |
download | accel-ppp-d5c3630d92b329735048b228878bb3ae137799cc.tar.gz accel-ppp-d5c3630d92b329735048b228878bb3ae137799cc.zip |
improved single-session=replace handling
Wait for previous session completely terminated before continuing authorization new session.
Diffstat (limited to 'accel-pppd/include')
-rw-r--r-- | accel-pppd/include/ap_session.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/include/ap_session.h b/accel-pppd/include/ap_session.h index 86a777c2..cde8dc09 100644 --- a/accel-pppd/include/ap_session.h +++ b/accel-pppd/include/ap_session.h @@ -86,6 +86,8 @@ struct ap_session struct backup_data *backup; #endif + struct triton_context_t *wakeup; + int terminating:1; int terminated:1; int terminate_cause; @@ -124,7 +126,7 @@ int ap_session_starting(struct ap_session *ses); void ap_session_finished(struct ap_session *ses); void ap_session_terminate(struct ap_session *ses, int cause, int hard); void ap_session_activate(struct ap_session *ses); -int ap_session_check_single(const char *username); +int ap_session_set_username(struct ap_session *ses, char *username); void ap_session_ifup(struct ap_session *ses); void ap_session_ifdown(struct ap_session *ses); |