diff options
author | rik <rik@FreeBSD.org> | 2004-06-25 10:25:33 +0000 |
---|---|---|
committer | rik <rik@FreeBSD.org> | 2004-06-25 10:25:33 +0000 |
commit | f844c60a444259a05fd64c02c4efd83693a3e2d5 (patch) | |
tree | 3feaacff3f45c3886335db59bcfadd493da5ea15 /sys/net | |
parent | 1f0612daa9755269890de332df7f8f7a63c74ae0 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/net/if_spppsubr.c | 3 |
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", |