Module Name: src
Committed By: rmind
Date: Mon Feb 2 19:08:32 UTC 2015
Modified Files:
src/usr.sbin/npf/npfctl: npf_show.c
Log Message:
npfctl_print_rule: print the ID in hex, not decimal.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/usr.sbin/npf/npfctl/npf_show.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/npf_show.c
diff -u src/usr.sbin/npf/npfctl/npf_show.c:1.16 src/usr.sbin/npf/npfctl/npf_show.c:1.17
--- src/usr.sbin/npf/npfctl/npf_show.c:1.16 Mon Feb 2 00:31:39 2015
+++ src/usr.sbin/npf/npfctl/npf_show.c Mon Feb 2 19:08:32 2015
@@ -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 @@ npfctl_print_rule(npf_conf_info_t *ctx,
/* 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);