make DDB print ipv6 addresses too trunk
authormlelstv <mlelstv@NetBSD.org>
Thu, 17 Dec 2015 12:17:13 +0000
branchtrunk
changeset 239584 fbc7e0aa1164
parent 239583 495950102a14
child 239585 9be40519330b
make DDB print ipv6 addresses too
sys/net/npf/npf_inet.c
--- a/sys/net/npf/npf_inet.c	Thu Dec 17 12:16:21 2015 +0000
+++ b/sys/net/npf/npf_inet.c	Thu Dec 17 12:17:13 2015 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: npf_inet.c,v 1.32 2014/07/20 00:37:41 rmind Exp $	*/
+/*	$NetBSD: npf_inet.c,v 1.33 2015/12/17 12:17:13 mlelstv Exp $	*/
 
 /*-
  * Copyright (c) 2009-2014 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_inet.c,v 1.32 2014/07/20 00:37:41 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_inet.c,v 1.33 2015/12/17 12:17:13 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -51,6 +51,7 @@
 
 #include <netinet/in_systm.h>
 #include <netinet/in.h>
+#include <netinet6/in6_var.h>
 #include <netinet/ip.h>
 #include <netinet/ip6.h>
 #include <netinet/tcp.h>
@@ -747,7 +748,7 @@
 		memcpy(&ip, addr, alen);
 		return inet_ntoa(ip);
 	}
-	return "[IPv6]"; // XXX
+	return ip6_sprintf(addr);
 }
 
 #endif