Source-Changes-HG archive

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

[src/trunk]: src/sys/net Added logs when IPCP and IPv6CP are up or down



details:   https://anonhg.NetBSD.org/src/rev/87b2823daabc
branches:  trunk
changeset: 983667:87b2823daabc
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Tue Jun 01 05:11:22 2021 +0000

description:
Added logs when IPCP and IPv6CP are up or down

diffstat:

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

diffs (50 lines):

diff -r 74ddbb534756 -r 87b2823daabc sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Tue Jun 01 05:08:46 2021 +0000
+++ b/sys/net/if_spppsubr.c     Tue Jun 01 05:11:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppsubr.c,v 1.254 2021/06/01 05:08:46 yamaguchi Exp $       */
+/*     $NetBSD: if_spppsubr.c,v 1.255 2021/06/01 05:11:22 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.254 2021/06/01 05:08:46 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.255 2021/06/01 05:11:22 yamaguchi Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -3897,6 +3897,7 @@
 
        KASSERT(SPPP_WLOCKED(sp));
 
+       SPPP_LOG(sp, LOG_INFO, "IPCP layer up\n");
        ifp = &sp->pp_if;
        if ((sp->ipcp.flags & IPCP_MYADDR_DYN) &&
            ((sp->ipcp.flags & IPCP_MYADDR_SEEN) == 0)) {
@@ -3920,6 +3921,7 @@
 
        KASSERT(SPPP_WLOCKED(sp));
 
+       SPPP_LOG(sp, LOG_INFO, "IPCP layer down\n");
        ifp = &sp->pp_if;
        rt_ifmsg(ifp);
 #endif
@@ -4464,6 +4466,7 @@
 
        KASSERT(SPPP_WLOCKED(sp));
 
+       SPPP_LOG(sp, LOG_INFO, "IPv6CP layer up\n");
        ifp = &sp->pp_if;
        /* we are up - notify isdn daemon */
        sppp_notify_con_wlocked(sp);
@@ -4477,6 +4480,7 @@
 
        KASSERT(SPPP_WLOCKED(sp));
 
+       SPPP_LOG(sp, LOG_INFO, "IPv6CP layer down\n");
        ifp = &sp->pp_if;
        rt_ifmsg(ifp);
 }



Home | Main Index | Thread Index | Old Index