Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/npf/npfctl Fix showing translated port (ntohs-ed tw...



details:   https://anonhg.NetBSD.org/src/rev/4bc5077090ef
branches:  trunk
changeset: 827482:4bc5077090ef
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Oct 30 04:53:43 2017 +0000

description:
Fix showing translated port (ntohs-ed twice wrongly)

diffstat:

 usr.sbin/npf/npfctl/npfctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d7bbf69bdcd1 -r 4bc5077090ef usr.sbin/npf/npfctl/npfctl.c
--- a/usr.sbin/npf/npfctl/npfctl.c      Mon Oct 30 03:25:14 2017 +0000
+++ b/usr.sbin/npf/npfctl/npfctl.c      Mon Oct 30 04:53:43 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npfctl.c,v 1.53 2017/01/11 02:10:44 christos Exp $     */
+/*     $NetBSD: npfctl.c,v 1.54 2017/10/30 04:53:43 ozaki-r Exp $      */
 
 /*-
  * Copyright (c) 2009-2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: npfctl.c,v 1.53 2017/01/11 02:10:44 christos Exp $");
+__RCSID("$NetBSD: npfctl.c,v 1.54 2017/10/30 04:53:43 ozaki-r Exp $");
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -624,7 +624,7 @@
                fputc('\n', fp);
                return 1;
        }
-       fprintf(fp, " via %s:%d\n", ifname, ntohs(p[2]));
+       fprintf(fp, " via %s:%d\n", ifname, p[2]);
        return 1;
 }
 



Home | Main Index | Thread Index | Old Index