From: Pawel Sikora <pluto@agmk.net>
To: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] Another save/restore buglet
Date: Fri, 20 May 2005 12:40:35 +0200 [thread overview]
Message-ID: <200505201240.36175.pluto@agmk.net> (raw)
In-Reply-To: <428BCB6E.1020709@shorewall.net>
[-- Attachment #1: Type: text/plain, Size: 614 bytes --]
On Thursday 19 of May 2005 01:10, Tom Eastep wrote:
> This time, it's the CONNMARK extention that is producing saved output
> that won't restore.
>
> gateway:/etc/test# iptables-save > save
> gateway:/etc/test# iptables-restore < save
> iptables-restore v1.3.1: Bad MASK value `ff'
> Error occurred at line: 24
> Try `iptables-restore -h' or 'iptables-restore --help' for more
> information. gateway:/etc/test#
>
> Patch attached.
You've missed the 64-bit variant ;-)
--
The only thing necessary for the triumph of evil
is for good men to do nothing.
- Edmund Burke
[-- Attachment #2: libipt_CONNMARK.c.diff --]
[-- Type: text/x-diff, Size: 519 bytes --]
Index: libipt_CONNMARK.c
===================================================================
--- libipt_CONNMARK.c (revision 5883)
+++ libipt_CONNMARK.c (working copy)
@@ -150,7 +150,7 @@
print_mask(const char *text, unsigned long long mask)
{
if (mask != ~0ULL)
- printf("%s%llx", text, mask);
+ printf("%s0x%llx", text, mask);
}
#else
@@ -165,7 +165,7 @@
print_mask(const char *text, unsigned long mask)
{
if (mask != ~0UL)
- printf("%s%lx", text, mask);
+ printf("%s0x%lx", text, mask);
}
#endif
next prev parent reply other threads:[~2005-05-20 10:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-18 23:10 [PATCH] Another save/restore buglet Tom Eastep
2005-05-20 10:40 ` Pawel Sikora [this message]
2005-06-11 16:06 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200505201240.36175.pluto@agmk.net \
--to=pluto@agmk.net \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.