From: Phil Sutter <phil@nwl.cc>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [iptables PATCH 1/3] arptables: Fix formatting of numeric --h-type output
Date: Thu, 9 Nov 2023 15:56:00 +0100 [thread overview]
Message-ID: <ZUzzAPy3ZlPatrNx@orbyte.nwl.cc> (raw)
In-Reply-To: <20231108033130.18747-1-phil@nwl.cc>
On Wed, Nov 08, 2023 at 04:31:28AM +0100, Phil Sutter wrote:
> Arptables expects numeric arguments to --h-type option in hexadecimal
> form, even if no '0x'-prefix is present. In contrast, it prints such
> values in decimal. This is not just inconsistent, but makes it
> impossible to save and later restore a ruleset without fixing up the
> values in between.
>
> Assuming that the parser side can't be changed for compatibility
> reasons, fix the output side instead.
>
> This is a day 1 bug and present in legacy arptables as well, so treat
> this as a "feature" of arptables-nft and omit a Fixes: tag.
>
> Signed-off-by: Phil Sutter <phil@nwl.cc>
Series applied.
prev parent reply other threads:[~2023-11-09 14:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-08 3:31 [iptables PATCH 1/3] arptables: Fix formatting of numeric --h-type output Phil Sutter
2023-11-08 3:31 ` [iptables PATCH 2/3] arptables: Fix --proto-type mask formatting Phil Sutter
2023-11-08 3:31 ` [iptables PATCH 3/3] extensions: libarpt_standard.t: Add a rule with builtin option masks Phil Sutter
2023-11-08 9:13 ` [iptables PATCH 1/3] arptables: Fix formatting of numeric --h-type output Florian Westphal
2023-11-09 14:56 ` Phil Sutter [this message]
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=ZUzzAPy3ZlPatrNx@orbyte.nwl.cc \
--to=phil@nwl.cc \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.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 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).