Do not count loobacks as other fuilures.

As a result magic will not be rejected any more in case of loopback.

Discussed with:	joerg@
This commit is contained in:
rik 2004-06-25 10:25:33 +00:00
parent 1f0612daa9
commit f844c60a44

View File

@ -2381,7 +2381,8 @@ sppp_lcp_RCR(struct sppp *sp, struct lcp_header *h, int len)
lcp.Down(sp);
lcp.Up(sp);
}
} else if (++sp->fail_counter[IDX_LCP] >= sp->lcp.max_failure) {
} else if (!sp->pp_loopcnt &&
++sp->fail_counter[IDX_LCP] >= sp->lcp.max_failure) {
if (debug)
log(-1, " max_failure (%d) exceeded, "
"send conf-rej\n",