Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Let non-neighbor NS/NA debug error message incl...
details: https://anonhg.NetBSD.org/src/rev/2b66cf3c6487
branches: trunk
changeset: 344957:2b66cf3c6487
user: is <is%NetBSD.org@localhost>
date: Fri Apr 29 11:46:17 2016 +0000
description:
Let non-neighbor NS/NA debug error message include useful information.
diffstat:
sys/netinet6/nd6_nbr.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 0929398098e8 -r 2b66cf3c6487 sys/netinet6/nd6_nbr.c
--- a/sys/netinet6/nd6_nbr.c Fri Apr 29 07:12:34 2016 +0000
+++ b/sys/netinet6/nd6_nbr.c Fri Apr 29 11:46:17 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6_nbr.c,v 1.116 2016/04/11 01:16:20 ozaki-r Exp $ */
+/* $NetBSD: nd6_nbr.c,v 1.117 2016/04/29 11:46:17 is Exp $ */
/* $KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.116 2016/04/11 01:16:20 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.117 2016/04/29 11:46:17 is Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -149,7 +149,9 @@
*/
sockaddr_in6_init(&ssin6, &saddr6, 0, 0, 0);
if (nd6_is_addr_neighbor(&ssin6, ifp) == 0) {
- nd6log(LOG_INFO, "NS packet from non-neighbor\n");
+ nd6log(LOG_INFO,
+ "NS packet from non-neighbor %s on %s\n",
+ ip6_sprintf(&saddr6), if_name(ifp));
goto bad;
}
}
@@ -625,7 +627,8 @@
*/
sockaddr_in6_init(&ssin6, &saddr6, 0, 0, 0);
if (nd6_is_addr_neighbor(&ssin6, ifp) == 0) {
- nd6log(LOG_INFO, "ND packet from non-neighbor\n");
+ nd6log(LOG_INFO, "ND packet from non-neighbor %s on %s\n",
+ ip6_sprintf(&saddr6), if_name(ifp));
goto bad;
}
Home |
Main Index |
Thread Index |
Old Index