Date: Sun, 20 Jun 2004 03:09:15 +0400 From: Roman Kurakin <rik@cronyx.ru> To: net@freebsd.org Cc: joerg@freebsd.org Subject: if_sppp Message-ID: <40D4C79B.2050400@cronyx.ru>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi,
I want to propose a patch for sppp.
Problem:
If we have max_failure < MAXALIVECNT*5 we will
send conf-rej for magic.
Solution:
Loopback could be treated as a special case and
thus we may not count it as a failure.
[-- Attachment #2 --]
Index: if_spppsubr.c
===================================================================
RCS file: /CVS/FreeBSD/src/sys/net/if_spppsubr.c,v
retrieving revision 1.110
diff -u -r1.110 if_spppsubr.c
--- if_spppsubr.c 15 Jun 2004 23:57:41 -0000 1.110
+++ if_spppsubr.c 19 Jun 2004 22:51:13 -0000
@@ -2381,7 +2381,8 @@
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",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40D4C79B.2050400>
