Source-Changes-HG archive

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

[src/trunk]: src/sys/net Fix to reconnect after PADT received



details:   https://anonhg.NetBSD.org/src/rev/96f4d35340e5
branches:  trunk
changeset: 957369:96f4d35340e5
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Wed Nov 25 10:42:35 2020 +0000

description:
Fix to reconnect after PADT received

diffstat:

 sys/net/if_pppoe.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r b3b92fcf8045 -r 96f4d35340e5 sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c        Wed Nov 25 10:39:47 2020 +0000
+++ b/sys/net/if_pppoe.c        Wed Nov 25 10:42:35 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.157 2020/11/25 10:39:47 yamaguchi Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.158 2020/11/25 10:42:35 yamaguchi Exp $ */
 
 /*
  * Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.157 2020/11/25 10:39:47 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.158 2020/11/25 10:42:35 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "pppoe.h"
@@ -1006,6 +1006,8 @@
                        goto done;
 
                pppoe_clear_softc(sc, "received PADT");
+               if (sc->sc_sppp.pp_if.if_flags & IFF_RUNNING)
+                       callout_schedule(&sc->sc_timeout, PPPOE_RECON_FAST);
                PPPOE_UNLOCK(sc);
                break;
 



Home | Main Index | Thread Index | Old Index