From 3cc6fc3cbf26b847ba7232ff220b74e74e72c219 Mon Sep 17 00:00:00 2001 From: Pablo Sebastian Greco Date: Mon, 29 Sep 2008 08:51:32 +0200 Subject: 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. Signed-off-by: Pablo Sebastian Greco Signed-off-by: Pablo Neira Ayuso --- extensions/libxt_mark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/libxt_mark.c') diff --git a/extensions/libxt_mark.c b/extensions/libxt_mark.c index 4ee29e71..811cc77e 100644 --- a/extensions/libxt_mark.c +++ b/extensions/libxt_mark.c @@ -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); -- cgit v1.2.3