summaryrefslogtreecommitdiff
path: root/accel-pppd/include
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-05-18 01:04:19 +0000
committerDmitry Kozlov <xeb@mail.ru>2014-05-18 02:15:25 +0000
commitd5c3630d92b329735048b228878bb3ae137799cc (patch)
tree2e7ae38e67170ef8f7ce502e40e3d6fbecd06903 /accel-pppd/include
parentec41e172a9da0de7cf5c28027928c698d0d1ebf8 (diff)
downloadaccel-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.h4
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);