Source-Changes-HG archive

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

[src/trunk]: src/sys/net Added a log about rejection of IPCP address option



details:   https://anonhg.NetBSD.org/src/rev/1cac17ab232c
branches:  trunk
changeset: 983372:1cac17ab232c
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Wed May 19 01:42:35 2021 +0000

description:
Added a log about rejection of IPCP address option

diffstat:

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

diffs (30 lines):

diff -r 664dcf1336ae -r 1cac17ab232c sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Tue May 18 21:39:06 2021 +0000
+++ b/sys/net/if_spppsubr.c     Wed May 19 01:42:35 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppsubr.c,v 1.241 2021/05/14 08:41:25 yamaguchi Exp $       */
+/*     $NetBSD: if_spppsubr.c,v 1.242 2021/05/19 01:42:35 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.241 2021/05/14 08:41:25 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.242 2021/05/19 01:42:35 yamaguchi Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -3929,6 +3929,11 @@
                         * Peer doesn't grok address option.  This is
                         * bad.  XXX  Should we better give up here?
                         */
+                       if (!debug) {
+                               log(LOG_ERR, "%s: "
+                                   "IPCP address option rejected\n",
+                                   ifp->if_xname);
+                       }
                        CLR(sp->ipcp.opts, SPPP_IPCP_OPT_ADDRESS);
                        break;
 #ifdef notyet



Home | Main Index | Thread Index | Old Index