netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Correct CONNSECMARK_save()
@ 2011-09-03 13:24 Tom Eastep
  2011-09-05 18:19 ` Jan Engelhardt
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Eastep @ 2011-09-03 13:24 UTC (permalink / raw)
  To: Netfilter Development


[-- Attachment #1.1: Type: text/plain, Size: 702 bytes --]

Output is missing a space between 'CONNSECMARK' and '--'.

        sami:~# iptables -N foo -t mangle
        sami:~# iptables -A foo -t mangle -j CONNSECMARK --save
        sami:~# iptables -S -t mangle
        -P PREROUTING ACCEPT
        -P INPUT ACCEPT
        -P FORWARD ACCEPT
        -P OUTPUT ACCEPT
        -P POSTROUTING ACCEPT
        -N foo
        -A foo -j CONNSECMARK--save
        sami:~# 

-Tom
-- 
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 #1.2: commit-953ba77 --]
[-- Type: text/plain, Size: 628 bytes --]

commit 953ba77affab19f16bd9064d6b8344c3d12a9b53
Author: Tom Eastep <teastep@shorewall.net>
Date:   Fri Sep 2 17:45:51 2011 -0700

    Resolve -S issue with CONNSECMARK

diff --git a/extensions/libxt_CONNSECMARK.c b/extensions/libxt_CONNSECMARK.c
index df2e6b8..0b3cd79 100644
--- a/extensions/libxt_CONNSECMARK.c
+++ b/extensions/libxt_CONNSECMARK.c
@@ -87,7 +87,7 @@ CONNSECMARK_save(const void *ip, const struct xt_entry_target *target)
 	const struct xt_connsecmark_target_info *info =
 		(struct xt_connsecmark_target_info*)target->data;
 
-	printf("--");
+	printf(" --");
 	print_connsecmark(info);
 }
 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2011-09-05 18:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-03 13:24 [PATCH] Correct CONNSECMARK_save() Tom Eastep
2011-09-05 18:19 ` Jan Engelhardt

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).