Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Reset fail counter when link goes down so that next ...



details:   https://anonhg.NetBSD.org/src/rev/d61a45f52ce8
branches:  trunk
changeset: 321671:d61a45f52ce8
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Fri Mar 30 13:29:19 2018 +0000

description:
Reset fail counter when link goes down so that next session starts
with the correct retry count.

diffstat:

 sys/net/if_spppsubr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r d49a49843c36 -r d61a45f52ce8 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Fri Mar 30 13:21:24 2018 +0000
+++ b/sys/net/if_spppsubr.c     Fri Mar 30 13:29:19 2018 +0000
@@ -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 @@
                            "%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);



Home | Main Index | Thread Index | Old Index