All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Correct libxt_statistic save output
@ 2012-11-17 22:05 Tom Eastep
  2012-11-19 10:44 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Eastep @ 2012-11-17 22:05 UTC (permalink / raw)
  To: Netfilter Developer Mailing List

[-- 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 --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Correct libxt_statistic save output
  2012-11-17 22:05 [PATCH] Correct libxt_statistic save output Tom Eastep
@ 2012-11-19 10:44 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2012-11-19 10:44 UTC (permalink / raw)
  To: Tom Eastep; +Cc: Netfilter Developer Mailing List

On Sat, Nov 17, 2012 at 02:05:59PM -0800, Tom Eastep wrote:
> 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.

Applied, thanks Tom!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-19 10:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-17 22:05 [PATCH] Correct libxt_statistic save output Tom Eastep
2012-11-19 10:44 ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.