Module Name: src Committed By: mlelstv Date: Fri Mar 30 13:29:19 UTC 2018
Modified Files: src/sys/net: if_spppsubr.c Log Message: Reset fail counter when link goes down so that next session starts with the correct retry count. To generate a diff of this commit: cvs rdiff -u -r1.179 -r1.180 src/sys/net/if_spppsubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if_spppsubr.c diff -u src/sys/net/if_spppsubr.c:1.179 src/sys/net/if_spppsubr.c:1.180 --- src/sys/net/if_spppsubr.c:1.179 Tue Feb 6 03:15:15 2018 +++ src/sys/net/if_spppsubr.c Fri Mar 30 13:29:19 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: if_spppsubr.c,v 1.179 2018/02/06 03:15:15 knakahara Exp $ */ +/* $NetBSD: if_spppsubr.c,v 1.180 2018/03/30 13:29:19 mlelstv Exp $ */ /* * Synchronous PPP/Cisco link level subroutines. @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.179 2018/02/06 03:15:15 knakahara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.180 2018/03/30 13:29:19 mlelstv Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -2274,6 +2274,7 @@ sppp_lcp_down(struct sppp *sp) "%s: Down event (carrier loss)\n", ifp->if_xname); } + sp->fail_counter[IDX_LCP] = 0; sp->pp_flags &= ~PP_CALLIN; if (sp->state[IDX_LCP] != STATE_INITIAL) lcp.Close(sp);