if ((strlen(user) > 0) || autoscanP2) {
printf("PPP: Authenication failed.\n");
create_msg(BCM_PPPOE_AUTH_FAILED);
- //Ali for DT log
-#ifdef LOGMSG_EN
- syslog(LOG_USER, "Username and Password: Failed\n") ;
-#else
- syslog(LOG_USER,"Benutzername und Passwort: Fehlgeschlagen.\n");
-#endif
+ syslog(LOG_ERR,"User name and password authentication failed.\n");
}
+
+ if (autoscanP2) {
+ maxfail=0;
persist=0;
+ }
+ else {
+ unsuccess++;
+ persist=1;
+ }
}
/*
warn("auth_withpeer_success: unknown protocol %x", protocol);
bit = 0;
}
- //Ali for DT log
-#ifdef LOGMSG_EN
- syslog(LOG_USER, "Username and Password: OK\n") ;
-#else
- syslog(LOG_USER,"Benutzername und Passwort: OK\n");
-#endif
+
+ persist=1; // for autoscan
+
/*
* If there is no more authentication still being done,
* proceed to the network (or callback) phase.
*/
status = EXIT_OK;
unsuccess = 0;
+ holdoff = 10;
new_phase(PHASE_RUNNING);
if (idle_time_hook != 0)
struct ppp_idle idle;
time_t itime;
int tlim;
+
if (!get_idle_time(0, &idle))
return;
if (idle_time_hook != 0) {
lcp_close(0, "Link inactive");
need_holdoff = 0;
status = EXIT_IDLE_TIMEOUT;
-
- /*
- ** Added by marson by ppp ever up
- */
- isDialUpEnabled = 0;
-
// brcm
redisconn = 0;
sprintf(oldsession, "%s", "");