From: Tom Eastep <teastep@shorewall.net>
To: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: [PATCH] Correct libxt_statistic save output
Date: Sat, 17 Nov 2012 14:05:59 -0800 [thread overview]
Message-ID: <50A80A47.6010700@shorewall.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1092 bytes --]
Suppressing '--packet 0' in save output resulted in restore failure.
This patch includes '--packet 0' in save output while continuing to
suppress it in print output.
---
extensions/libxt_statistic.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/extensions/libxt_statistic.c b/extensions/libxt_statistic.c
index 12a83dd..3a6632d 100644
--- a/extensions/libxt_statistic.c
+++ b/extensions/libxt_statistic.c
@@ -107,7 +107,7 @@ static void print_match(const struct
xt_statistic_info *info, char *prefix)
(info->flags & XT_STATISTIC_INVERT) ? " !" : "",
prefix,
info->u.nth.every + 1);
- if (info->u.nth.packet)
+ if (info->u.nth.packet || *prefix )
printf(" %spacket %u", prefix, info->u.nth.packet);
break;
}
--
1.7.2.5
--
Tom Eastep \ When I die, I want to go like my Grandfather who
Shoreline, \ died peacefully in his sleep. Not screaming like
Washington, USA \ all of the passengers in his car
http://shorewall.net \________________________________________________
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 295 bytes --]
next reply other threads:[~2012-11-17 22:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-17 22:05 Tom Eastep [this message]
2012-11-19 10:44 ` [PATCH] Correct libxt_statistic save output Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50A80A47.6010700@shorewall.net \
--to=teastep@shorewall.net \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).