From: Paul Mackerras Date: Fri, 23 Oct 2009 01:17:11 +0000 (+1100) Subject: Increase default IPCP Conf-Nak limit X-Git-Tag: ppp-2.4.7~58 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=29bdd4bcc2f9e92f7d880d03240b49d2a25870f7;p=ppp.git Increase default IPCP Conf-Nak limit Some 3G modems use IPCP Conf-Naks with the same values as we requested as a way to delay the negotiation until they have contacted a server over their radio network. This increases the default value for the ipcp-max-failure option from 5 to 100 so that we don't give up too easily when this is happening. Signed-off-by: Paul Mackerras --- diff --git a/pppd/ipcp.c b/pppd/ipcp.c index cb873bb..12bcc61 100644 --- a/pppd/ipcp.c +++ b/pppd/ipcp.c @@ -575,6 +575,14 @@ ipcp_init(unit) f->callbacks = &ipcp_callbacks; fsm_init(&ipcp_fsm[unit]); + /* + * Some 3G modems use repeated IPCP NAKs as a way of stalling + * until they can contact a server on the network, so we increase + * the default number of NAKs we accept before we start treating + * them as rejects. + */ + f->maxnakloops = 100; + memset(wo, 0, sizeof(*wo)); memset(ao, 0, sizeof(*ao));