Skip site navigation (1)Skip section navigation (2)
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
This is a multi-part message in MIME format.
--------------060602090403030304070006
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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.



--------------060602090403030304070006
Content-Type: text/plain;
 name="if_sppp.pch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="if_sppp.pch"

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",

--------------060602090403030304070006--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40D4C79B.2050400>