www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / opensource / ppp / pppoe / lcp.c
index 4e9dab1..e954b91 100755 (executable)
@@ -1596,7 +1596,6 @@ lcp_reqci(f, inp, lenp, reject_if_disagree)
                        //lcp_close(0, "Auth failed");
                        status = EXIT_AUTH_TOPEER_FAILED;
                    //}
-                   maxfail=5;
                    persist=1;              
                    /* XXX if we can do CHAP_MICROSOFT as well, we should
                       probably put in another option saying so */
@@ -1627,7 +1626,6 @@ lcp_reqci(f, inp, lenp, reject_if_disagree)
                        //lcp_close(0, "Auth failed");
                        status = EXIT_AUTH_TOPEER_FAILED;
                    //}
-                   maxfail=5;
                    persist=1;              
                    break;
                }
@@ -1855,12 +1853,12 @@ lcp_up(f)
      * the interface MTU is set to the lower of that and the
      * MTU we want to use.
      */
-    mtu = ho->neg_mru? ho->mru: pppMtu;        // USR9108
+    mtu = ho->neg_mru? ho->mru: PPP_MRU;
 #ifdef HAVE_MULTILINK
     if (!(multilink && go->neg_mrru && ho->neg_mrru))
 #endif /* HAVE_MULTILINK */
        netif_set_mtu(f->unit, MIN(mtu, ao->mru));
-    ppp_send_config(f->unit, mtu,
+    ppp_send_config(f->unit, MIN(mtu, ao->mru),
                    (ho->neg_asyncmap? ho->asyncmap: 0xffffffff),
                    ho->neg_pcompression, ho->neg_accompression);
     ppp_recv_config(f->unit, (go->neg_mru? MAX(wo->mru, go->mru): PPP_MRU),