Module Name:    src
Committed By:   yamaguchi
Date:           Tue Jun  1 05:11:22 UTC 2021

Modified Files:
        src/sys/net: if_spppsubr.c

Log Message:
Added logs when IPCP and IPv6CP are up or down


To generate a diff of this commit:
cvs rdiff -u -r1.254 -r1.255 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.254 src/sys/net/if_spppsubr.c:1.255
--- src/sys/net/if_spppsubr.c:1.254	Tue Jun  1 05:08:46 2021
+++ src/sys/net/if_spppsubr.c	Tue Jun  1 05:11:22 2021
@@ -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 @@ sppp_ipcp_tlu(struct sppp *sp)
 
 	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 @@ sppp_ipcp_tld(struct sppp *sp)
 
 	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 @@ sppp_ipv6cp_tlu(struct sppp *sp)
 
 	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 @@ sppp_ipv6cp_tld(struct sppp *sp)
 
 	KASSERT(SPPP_WLOCKED(sp));
 
+	SPPP_LOG(sp, LOG_INFO, "IPv6CP layer down\n");
 	ifp = &sp->pp_if;
 	rt_ifmsg(ifp);
 }

Reply via email to