Module Name:    src
Committed By:   ozaki-r
Date:           Mon Oct 30 04:53:43 UTC 2017

Modified Files:
        src/usr.sbin/npf/npfctl: npfctl.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/usr.sbin/npf/npfctl/npfctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/npf/npfctl/npfctl.c
diff -u src/usr.sbin/npf/npfctl/npfctl.c:1.53 src/usr.sbin/npf/npfctl/npfctl.c:1.54
--- src/usr.sbin/npf/npfctl/npfctl.c:1.53	Wed Jan 11 02:10:44 2017
+++ src/usr.sbin/npf/npfctl/npfctl.c	Mon Oct 30 04:53:43 2017
@@ -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 @@ npfctl_conn_print(unsigned alen, const n
 		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;
 }
 

Reply via email to