Skip to contentSkip to conversation

Correct CONNSECMARK_save()

PATCH In review Tom Eastep 2 participants 2 messages Sep 3, 2011 – Sep 5, 2011 netfilter

lore
Share & tools
lore

Tom Eastep

author
#0 lore raw

PATCH 1/1 Correct CONNSECMARK_save()

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

Signature · 4 lines
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 \________________________________________________

commit 953ba77affab19f16bd9064d6b8344c3d12a9b53

Author: Tom Eastep <[email protected]>
Date:   Fri Sep 2 17:45:51 2011 -0700

Resolve -S issue with CONNSECMARK

extensions/libxt_CONNSECMARK.c +1 -1
index df2e6b8..0b3cd79 100644
@@ -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);
 }
 
#1 lore raw
Quoted 13 lines · Tom Eastep

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:~# 

Taken.