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 npfctl_print_rule: print the ID in hex, ...
details: https://anonhg.NetBSD.org/src/rev/79b5ec619003
branches: trunk
changeset: 335961:79b5ec619003
user: rmind <rmind%NetBSD.org@localhost>
date: Mon Feb 02 19:08:32 2015 +0000
description:
npfctl_print_rule: print the ID in hex, not decimal.
diffstat:
usr.sbin/npf/npfctl/npf_show.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 537a38454cfe -r 79b5ec619003 usr.sbin/npf/npfctl/npf_show.c
--- a/usr.sbin/npf/npfctl/npf_show.c Mon Feb 02 16:18:27 2015 +0000
+++ b/usr.sbin/npf/npfctl/npf_show.c Mon Feb 02 19:08:32 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_show.c,v 1.16 2015/02/02 00:31:39 rmind Exp $ */
+/* $NetBSD: npf_show.c,v 1.17 2015/02/02 19:08:32 rmind Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: npf_show.c,v 1.16 2015/02/02 00:31:39 rmind Exp $");
+__RCSID("$NetBSD: npf_show.c,v 1.17 2015/02/02 19:08:32 rmind Exp $");
#include <sys/socket.h>
#include <netinet/in.h>
@@ -388,7 +388,7 @@
/* If dynamic rule - print its ID. */
if ((attr & NPF_DYNAMIC_GROUP) == NPF_RULE_DYNAMIC) {
uint64_t id = npf_rule_getid(rl);
- fprintf(ctx->fp, "# id = \"%" PRIu64 "\" ", id);
+ fprintf(ctx->fp, "# id = \"%" PRIx64 "\" ", id);
}
fputs("\n", ctx->fp);
Home |
Main Index |
Thread Index |
Old Index