diff options
author | Kozlov Dmitry <dima@server> | 2010-09-01 19:29:43 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-09-01 19:29:43 +0400 |
commit | 2b63c6e6e368d6ea39584a70ddb81a88e0924c47 (patch) | |
tree | 790cc5d46e691b4b920170b7dfde40d3c6ec4be6 /accel-pptpd/ppp_fsm.c | |
parent | 5bac5a2edb7bc7639c853fd0f7109dcddb7c4cee (diff) | |
download | accel-ppp-xebd-2b63c6e6e368d6ea39584a70ddb81a88e0924c47.tar.gz accel-ppp-xebd-2b63c6e6e368d6ea39584a70ddb81a88e0924c47.zip |
rewriting triton library ...
Diffstat (limited to 'accel-pptpd/ppp_fsm.c')
-rw-r--r-- | accel-pptpd/ppp_fsm.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/accel-pptpd/ppp_fsm.c b/accel-pptpd/ppp_fsm.c index 41436eb..72a42d0 100644 --- a/accel-pptpd/ppp_fsm.c +++ b/accel-pptpd/ppp_fsm.c @@ -29,10 +29,7 @@ static int restart_timer_func(struct triton_timer_t*t); void ppp_fsm_init(struct ppp_fsm_t *layer) { layer->fsm_state=FSM_Initial; - layer->restart_timer.active=0; - layer->restart_timer.pd=layer; - layer->restart_timer.expire=restart_timer_func; - layer->restart_timer.period=3000; + //layer->restart_timer.active=0; layer->restart_counter=0; layer->max_terminate=2; layer->max_configure=10; @@ -461,20 +458,20 @@ void send_term_ack(struct ppp_fsm_t *layer) static void init_req_counter(struct ppp_fsm_t *layer,int timeout) { - triton_timer_del(&layer->restart_timer); + //triton_timer_del(&layer->restart_timer); layer->restart_timer.expire_tv.tv_sec=0; - triton_timer_add(&layer->restart_timer); + //triton_timer_add(&layer->restart_timer); layer->restart_counter=timeout; } static void zero_req_counter(struct ppp_fsm_t *layer) { - triton_timer_del(&layer->restart_timer); + //triton_timer_del(&layer->restart_timer); layer->restart_timer.expire_tv.tv_sec=0; - triton_timer_add(&layer->restart_timer); + //triton_timer_add(&layer->restart_timer); layer->restart_counter=0; } -static int restart_timer_func(struct triton_timer_t*t) +/*static int restart_timer_func(struct triton_timer_t*t) { struct ppp_fsm_t *layer=(struct ppp_fsm_t *)t->pd; @@ -486,4 +483,5 @@ static int restart_timer_func(struct triton_timer_t*t) ppp_fsm_timeout1(layer); return 0; -} +}*/ + |