Source-Changes-HG archive

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

[src/trunk]: src/sys/net/npf make DDB print ipv6 addresses too



details:   https://anonhg.NetBSD.org/src/rev/474315f55852
branches:  trunk
changeset: 342345:474315f55852
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Thu Dec 17 12:17:13 2015 +0000

description:
make DDB print ipv6 addresses too

diffstat:

 sys/net/npf/npf_inet.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 57d5b6da8546 -r 474315f55852 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



Home | Main Index | Thread Index | Old Index