Skip to contentSkip to conversation

Netfilter bugzilla

DISCUSSION Pablo Neira Ayuso 1 participant 1 message Sep 29, 2008 1 message not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 09095012B8574F16A942F01268EA7D3D@pgreco

Pablo Neira Ayuso

author maintainer Applied
#1 lore raw

Hi Pablo,

Quoted 4 lines · Pablo Sebastián Greco

Pablo, a few days ago, i filed bug
http://bugzilla.netfilter.org/show_bug.cgi?id=556 , but I had a problem creating the attachment patch, and a message appeared saying that I should contact you about this.

Hm, without the specific error there's nothing I can do, I'll check this anyway to try to guess what's wrong.

Quoted 1 line

OTOH, do you know what should I do to make this bug fixed?

I have applied the following patch to the iptables git tree.

http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=summary

Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers

commit 8c8c1c8096570d94d13539c4928ddb3650642763

Author: Pablo Sebastian Greco <[email protected]>
Date:   Mon Sep 29 08:47:39 2008 +0200

mark: fix invalid iptables-save output

When a neg mark is saved via iptables-save it is saved as !--mark, but this is not recognized by iptables-restore, just adding a space to the saved file to make it look like "! --mark" makes iptables-restore accept the file.

extensions/libxt_mark.c +1 -1
index 811cc77..4ee29e7 100644
@@ -125,7 +125,7 @@ static void mark_mt_save(const void *ip, const struct xt_entry_match *match)
 	const struct xt_mark_mtinfo1 *info = (const void *)match->data;
 
 	if (info->invert)
-		printf("! ");
+		printf("!");
 
 	printf("--mark ");
 	print_mark(info->mark, info->mask);