X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fipcp.c;h=12bcc61be737f9d50b3ac3a6292f6c3c74d93b71;hb=d883b2dbafeed3ebd9d7a56ab1469373bd001a3b;hp=cb873bbd3e836a8501a089fab1786cf8dc68b86f;hpb=275b3d6e8901b22a609567717f7dab56c8b67f2d;p=ppp.git 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));