X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/1b6a7a95e600f89a70e59ca31e971c119b20cb6b..7462628249a5e5735ed0f34b489e9a7f550a2152:/l2tpns.h diff --git a/l2tpns.h b/l2tpns.h index 00285b7..7154554 100644 --- a/l2tpns.h +++ b/l2tpns.h @@ -1,5 +1,5 @@ // L2TPNS Global Stuff -// $Id: l2tpns.h,v 1.112 2006-04-13 11:14:35 bodea Exp $ +// $Id: l2tpns.h,v 1.113 2006-04-18 06:00:08 bodea Exp $ #ifndef __L2TPNS_H__ #define __L2TPNS_H__ @@ -14,7 +14,7 @@ #include #include -#define VERSION "2.1.17" +#define VERSION "2.1.18" // Limits #define MAXTUNNEL 500 // could be up to 65535 @@ -147,7 +147,16 @@ enum { // reset state machine counters #define initialise_restart_count(_s, _fsm) \ - sess_local[_s]._fsm.conf_sent = sess_local[_s]._fsm.nak_sent = 0 + sess_local[_s]._fsm.conf_sent = \ + sess_local[_s]._fsm.nak_sent = 0 + +// no more attempts +#define zero_restart_count(_s, _fsm) ({ \ + sess_local[_s]._fsm.conf_sent = \ + config->ppp_max_configure; \ + sess_local[_s]._fsm.restart = \ + time_now + config->ppp_restart_time; \ +}) // increment ConfReq counter and reset timer #define restart_timer(_s, _fsm) ({ \