summaryrefslogtreecommitdiffstats
path: root/sys/net/if_spppsubr.c
diff options
context:
space:
mode:
authorrik <rik@FreeBSD.org>2004-06-25 10:25:33 +0000
committerrik <rik@FreeBSD.org>2004-06-25 10:25:33 +0000
commitf844c60a444259a05fd64c02c4efd83693a3e2d5 (patch)
tree3feaacff3f45c3886335db59bcfadd493da5ea15 /sys/net/if_spppsubr.c
parent1f0612daa9755269890de332df7f8f7a63c74ae0 (diff)
downloadFreeBSD-src-f844c60a444259a05fd64c02c4efd83693a3e2d5.zip
FreeBSD-src-f844c60a444259a05fd64c02c4efd83693a3e2d5.tar.gz
Do not count loobacks as other fuilures.
As a result magic will not be rejected any more in case of loopback. Discussed with: joerg@
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r--sys/net/if_spppsubr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index d086f14..0821172 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -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",
OpenPOWER on IntegriCloud