netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phil Sutter <phil@nwl.cc>
To: netfilter-devel@vger.kernel.org
Subject: Re: [iptables PATCH] nft: Fix for useless meta expressions in rule
Date: Thu, 14 Sep 2023 12:35:37 +0200	[thread overview]
Message-ID: <ZQLh+edSOua2amkP@orbyte.nwl.cc> (raw)
In-Reply-To: <20230906170751.23040-1-phil@nwl.cc>

On Wed, Sep 06, 2023 at 07:07:51PM +0200, Phil Sutter wrote:
> A relict of legacy iptables' mandatory matching on interfaces and IP
> addresses is support for the '-i +' notation, basically a "match any
> input interface". Trying to make things better than its predecessor,
> iptables-nft boldly optimizes that nop away - not entirely though, the
> meta expression loading the interface name was left in place. While not
> a problem (apart from pointless overhead) in current HEAD, v1.8.7 would
> trip over this as a following cmp expression (for another match) was
> incorrectly linked to that stale meta expression, loading strange values
> into the respective interface name field.
> 
> While being at it, merge and generalize the functions into a common one
> for use with ebtables' NFT_META_BRI_(I|O)IFNAME matches, too.
> 
> Fixes: 0a8635183edd0 ("xtables-compat: ignore '+' interface name")
> Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1702
> Signed-off-by: Phil Sutter <phil@nwl.cc>

Patch applied.

      reply	other threads:[~2023-09-14 10:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-06 17:07 [iptables PATCH] nft: Fix for useless meta expressions in rule Phil Sutter
2023-09-14 10:35 ` 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=ZQLh+edSOua2amkP@orbyte.nwl.cc \
    --to=phil@nwl.cc \
    --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).