if_sppp
Roman Kurakin
rik at cronyx.ru
Sat Jun 19 23:20:39 GMT 2004
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.
-------------- next part --------------
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",
More information about the freebsd-net
mailing list