diff options
author | Kristen Carlson Accardi <kristen@linux.intel.com> | 2010-03-24 20:26:28 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-03-24 23:04:45 -0500 |
commit | 060a195432144e51ae4b79255e7224c1f0572981 (patch) | |
tree | f3d1c9e51c5f31f7999e42f70a3cbc787f3d491a /gatchat/ppp_cp.h | |
parent | fb40115bf2722e8f18fdf7d9b5a3008c9af953da (diff) | |
download | ofono-060a195432144e51ae4b79255e7224c1f0572981.tar.bz2 |
use separate timers for PPP config and terminate
Prevent conflicts between config timer information and terminate timer
information by providing a new data structure which keeps timer information
for config and terminate requests separate.
Diffstat (limited to 'gatchat/ppp_cp.h')
-rw-r--r-- | gatchat/ppp_cp.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gatchat/ppp_cp.h b/gatchat/ppp_cp.h index 875d02fe..095a8b5b 100644 --- a/gatchat/ppp_cp.h +++ b/gatchat/ppp_cp.h @@ -98,13 +98,18 @@ struct pppcp_packet { guint8 data[0]; } __attribute__((packed)); -struct pppcp_data { - enum pppcp_state state; - guint restart_timer; +struct pppcp_timer_data { + struct pppcp_data *data; guint restart_counter; guint restart_interval; - guint max_terminate; - guint max_configure; + guint max_counter; + guint restart_timer; +}; + +struct pppcp_data { + enum pppcp_state state; + struct pppcp_timer_data config_timer_data; + struct pppcp_timer_data terminate_timer_data; guint max_failure; guint32 magic_number; GQueue *event_queue; |