summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_cp.h
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2010-07-09 16:53:51 +0800
committerMarcel Holtmann <marcel@holtmann.org>2010-07-09 09:53:24 -0300
commita72e092d191274b8c395a39c3900090ae4e16533 (patch)
tree9b267201d962b705f024263c23efa5457d726efd /gatchat/ppp_cp.h
parent465a4f5ef53949439d0c711b92bc23ed763e21a6 (diff)
downloadofono-a72e092d191274b8c395a39c3900090ae4e16533.tar.bz2
ppp: Add MAX_IPCP_FAILURE to avoid timeout quickly
We use IPCP NAK response to stall the progress of acquiring the client IP address from DHCP server. So we need to increase the max failure of NAKs in IPCP handshaking.
Diffstat (limited to 'gatchat/ppp_cp.h')
-rw-r--r--gatchat/ppp_cp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gatchat/ppp_cp.h b/gatchat/ppp_cp.h
index 56a20e04..edcc996d 100644
--- a/gatchat/ppp_cp.h
+++ b/gatchat/ppp_cp.h
@@ -104,7 +104,7 @@ guint8 ppp_option_iter_get_length(struct ppp_option_iter *iter);
const guint8 *ppp_option_iter_get_data(struct ppp_option_iter *iter);
struct pppcp_data *pppcp_new(GAtPPP *ppp, const struct pppcp_proto *proto,
- gboolean dormant);
+ gboolean dormant, guint max_failure);
void pppcp_free(struct pppcp_data *data);
void pppcp_set_data(struct pppcp_data *pppcp, gpointer data);