www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / opensource / ppp / pppoe / auth.c
index 1af74cc..9e8d2b7 100755 (executable)
@@ -666,7 +666,7 @@ auth_withpeer_fail(unit, protocol)
     persist=0;
     }
     else {
-    maxfail=5;
+    unsuccess++;
     persist=1;
     }
 }
@@ -694,7 +694,6 @@ auth_withpeer_success(unit, protocol)
        bit = 0;
     }
 
-    maxfail=0;
     persist=1;  // for autoscan
 
     /*
@@ -721,6 +720,7 @@ np_up(unit, proto)
         */
        status = EXIT_OK;
        unsuccess = 0;
+        holdoff = 10;
        new_phase(PHASE_RUNNING);
 
        if (idle_time_hook != 0)