Source-Changes-HG archive

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

[src/trunk]: src/sys/dist/pf/net use in6_print



details:   https://anonhg.NetBSD.org/src/rev/f9d2c547ca51
branches:  trunk
changeset: 820941:f9d2c547ca51
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 16 15:46:19 2017 +0000

description:
use in6_print

diffstat:

 sys/dist/pf/net/pf_osfp.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 6caf5dbb7bd0 -r f9d2c547ca51 sys/dist/pf/net/pf_osfp.c
--- a/sys/dist/pf/net/pf_osfp.c Mon Jan 16 15:44:46 2017 +0000
+++ b/sys/dist/pf/net/pf_osfp.c Mon Jan 16 15:46:19 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pf_osfp.c,v 1.12 2017/01/16 07:33:36 ryo Exp $ */
+/*     $NetBSD: pf_osfp.c,v 1.13 2017/01/16 15:46:19 christos Exp $    */
 /*     $OpenBSD: pf_osfp.c,v 1.12 2006/12/13 18:14:10 itojun Exp $ */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pf_osfp.c,v 1.12 2017/01/16 07:33:36 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pf_osfp.c,v 1.13 2017/01/16 15:46:19 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -172,8 +172,8 @@
                fp.fp_flags |= PF_OSFP_DF;
                fp.fp_flags |= PF_OSFP_INET6;
 #ifdef _KERNEL
-               CTASSERT(sizeof(srcname) >= INET6_ADDRSTRLEN);
-               ip6_sprintf(srcname, (const struct in6_addr *)&ip6->ip6_src);
+               in6_print(srcname, sizeof(srcname),
+                   (const struct in6_addr *)&ip6->ip6_src);
 #else
                memset(&sin6, 0, sizeof(sin6));
                sin6.sin6_family = AF_INET6;



Home | Main Index | Thread Index | Old Index