Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 more debugging info...
details: https://anonhg.NetBSD.org/src/rev/db8336b5d097
branches: trunk
changeset: 804862:db8336b5d097
user: christos <christos%NetBSD.org@localhost>
date: Wed Dec 03 01:32:11 2014 +0000
description:
more debugging info...
diffstat:
sys/netinet6/nd6.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 43895e7284f5 -r db8336b5d097 sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c Wed Dec 03 01:31:37 2014 +0000
+++ b/sys/netinet6/nd6.c Wed Dec 03 01:32:11 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6.c,v 1.154 2014/10/18 08:33:29 snj Exp $ */
+/* $NetBSD: nd6.c,v 1.155 2014/12/03 01:32:11 christos Exp $ */
/* $KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.154 2014/10/18 08:33:29 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.155 2014/12/03 01:32:11 christos Exp $");
#include "bridge.h"
#include "carp.h"
@@ -2380,10 +2380,13 @@
}
sdl = satocsdl(rt->rt_gateway);
if (sdl->sdl_alen == 0 || sdl->sdl_alen > dstsize) {
+ char sbuf[INET6_ADDRSTRLEN];
+ char dbuf[LINK_ADDRSTRLEN];
/* this should be impossible, but we bark here for debugging */
- printf("%s: sdl_alen == %" PRIu8 ", dst=%s, if=%s\n", __func__,
- sdl->sdl_alen, ip6_sprintf(&satocsin6(dst)->sin6_addr),
- if_name(ifp));
+ printf("%s: sdl_alen == %" PRIu8 ", if=%s, dst=%s, sdl=%s\n",
+ __func__, sdl->sdl_alen, if_name(ifp),
+ IN6_PRINT(sbuf, &satocsin6(dst)->sin6_addr),
+ DL_PRINT(dbuf, &sdl->sdl_addr));
m_freem(m);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index