From: Phil Sutter <phil@nwl.cc>
To: netfilter-devel@vger.kernel.org
Cc: Michael Estner <michaelestner@web.de>
Subject: Re: [iptables PATCH] ebtables: Include 'bitmask' value when comparing rules
Date: Wed, 12 Jun 2024 22:45:08 +0200 [thread overview]
Message-ID: <ZmoI1A0yInMvCBh0@orbyte.nwl.cc> (raw)
In-Reply-To: <20240612124109.19837-3-phil@nwl.cc>
On Wed, Jun 12, 2024 at 02:41:09PM +0200, Phil Sutter wrote:
> The former FIXME comment pointed at the fact that struct ebt_entry does
> not have a 'flags' field (unlike struct ipt_ip). In fact, ebt_entry's
> equivalent is 'bitmask' field. Comparing that instead is the right
> thing to do, even though it does not seem to make a difference in
> practice: No rule options alter just the bitmask value, nor is it
> possible to fill an associated field with default values (e.g. all-zero
> MAC and mask).
>
> Since the situation described above might change and there is a slight
> performance improvement in some cases (e.g. comparing rules differing
> only by specified/omitted source/dest MAC address), add the check
> anyway.
>
> Suggested-by: Michael Estner <michaelestner@web.de>
> Signed-off-by: Phil Sutter <phil@nwl.cc>
Also applied.
prev parent reply other threads:[~2024-06-12 20:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-12 12:41 [iptables PATCH] ebtables: Include 'bitmask' value when comparing rules Phil Sutter
2024-06-12 20:45 ` 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=ZmoI1A0yInMvCBh0@orbyte.nwl.cc \
--to=phil@nwl.cc \
--cc=michaelestner@web.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).