Source-Changes-HG archive

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

[src/trunk]: src/sys/net Reset LCP fail counter when doing "ifconfig pppoe* up"



details:   https://anonhg.NetBSD.org/src/rev/ac41b9bc39b1
branches:  trunk
changeset: 1020881:ac41b9bc39b1
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Mon Apr 26 08:37:54 2021 +0000

description:
Reset LCP fail counter when doing "ifconfig pppoe* up"

diffstat:

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

diffs (26 lines):

diff -r 4343c1e2bfbc -r ac41b9bc39b1 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Mon Apr 26 08:34:22 2021 +0000
+++ b/sys/net/if_spppsubr.c     Mon Apr 26 08:37:54 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppsubr.c,v 1.223 2021/04/26 08:34:22 yamaguchi Exp $       */
+/*     $NetBSD: if_spppsubr.c,v 1.224 2021/04/26 08:37:54 yamaguchi Exp $       */
 
 /*
  * Synchronous PPP/Cisco link level subroutines.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.223 2021/04/26 08:34:22 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.224 2021/04/26 08:37:54 yamaguchi Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -2593,6 +2593,7 @@
        KASSERT(!cpu_softintr_p());
 
        sp->lcp.reestablish = false;
+       sp->scp[IDX_LCP].fail_counter = 0;
 
        if (sp->pp_if.if_mtu < PP_MTU) {
                sp->lcp.mru = sp->pp_if.if_mtu;



Home | Main Index | Thread Index | Old Index