From: Paul Mackerras Date: Fri, 19 May 1995 03:25:53 +0000 (+0000) Subject: fail on looped-back link, don't just warn; reduce default count to 5 X-Git-Tag: RELEASE_2_3_6~708 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=dc455e9684879d500532db9895a5ae791f000863 fail on looped-back link, don't just warn; reduce default count to 5 --- diff --git a/pppd/lcp.h b/pppd/lcp.h index 3712073..2e81449 100644 --- a/pppd/lcp.h +++ b/pppd/lcp.h @@ -16,7 +16,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: lcp.h,v 1.6 1994/09/21 06:47:37 paulus Exp $ + * $Id: lcp.h,v 1.7 1995/05/19 03:25:53 paulus Exp $ */ /* @@ -83,5 +83,6 @@ void lcp_sprotrej __P((int, u_char *, int)); int lcp_printpkt __P((u_char *, int, void (*) __P((void *, char *, ...)), void *)); -extern int lcp_warnloops; /* Warn about a loopback this often */ -#define DEFWARNLOOPS 10 /* Default value for above */ +/* Default number of times we receive our magic number from the peer + before deciding the link is looped-back. */ +#define DEFLOOPBACKFAIL 5