diff options
Diffstat (limited to 'accel-pptpd/ppp')
-rw-r--r-- | accel-pptpd/ppp/ppp.c | 2 | ||||
-rw-r--r-- | accel-pptpd/ppp/ppp.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/accel-pptpd/ppp/ppp.c b/accel-pptpd/ppp/ppp.c index d88bbd3..6ba0dd7 100644 --- a/accel-pptpd/ppp/ppp.c +++ b/accel-pptpd/ppp/ppp.c @@ -382,6 +382,8 @@ void __export ppp_terminate(struct ppp_t *ppp, int cause, int hard) struct ppp_layer_data_t *d; int s = 0; + time(&ppp->stop_time); + if (!ppp->terminate_cause) ppp->terminate_cause = cause; diff --git a/accel-pptpd/ppp/ppp.h b/accel-pptpd/ppp/ppp.h index dda5244..563250c 100644 --- a/accel-pptpd/ppp/ppp.h +++ b/accel-pptpd/ppp/ppp.h @@ -88,6 +88,7 @@ struct ppp_t char ifname[PPP_IFNAME_LEN]; char sessionid[PPP_SESSIONID_LEN+1]; time_t start_time; + time_t stop_time; char *username; in_addr_t ipaddr; in_addr_t peer_ipaddr; |