* [PATCH ebtables-nft] nft-bridge: work around recent "among" decode breakage
@ 2022-11-30 10:38 Florian Westphal
2022-11-30 14:20 ` Phil Sutter
0 siblings, 1 reply; 2+ messages in thread
From: Florian Westphal @ 2022-11-30 10:38 UTC (permalink / raw)
To: netfilter-devel; +Cc: Florian Westphal
ebtables-nft-save will fail with
"unknown meta key" when decoding "among" emulation with ipv4 or ipv6
addresses included.
This is because "meta protocol ip" is used as a dependency, but
its never decoded anywhere.
Skip this for now to restore the "ebtables/0006-flush_0"
test case.
Fixes: 25883ce88bfb ("nft: check for unknown meta keys")
Signed-off-by: Florian Westphal <fw@strlen.de>
---
iptables/nft-bridge.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/iptables/nft-bridge.c b/iptables/nft-bridge.c
index 3180091364fa..50e90b22cf2f 100644
--- a/iptables/nft-bridge.c
+++ b/iptables/nft-bridge.c
@@ -197,6 +197,11 @@ static void nft_bridge_parse_meta(struct nft_xt_ctx *ctx,
uint8_t invflags = 0;
char iifname[IFNAMSIZ] = {}, oifname[IFNAMSIZ] = {};
+ switch (reg->meta_dreg.key) {
+ case NFT_META_PROTOCOL:
+ return;
+ }
+
if (parse_meta(ctx, e, reg->meta_dreg.key, iifname, NULL, oifname, NULL, &invflags) < 0) {
ctx->errmsg = "unknown meta key";
return;
--
2.38.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH ebtables-nft] nft-bridge: work around recent "among" decode breakage
2022-11-30 10:38 [PATCH ebtables-nft] nft-bridge: work around recent "among" decode breakage Florian Westphal
@ 2022-11-30 14:20 ` Phil Sutter
0 siblings, 0 replies; 2+ messages in thread
From: Phil Sutter @ 2022-11-30 14:20 UTC (permalink / raw)
To: Florian Westphal; +Cc: netfilter-devel
On Wed, Nov 30, 2022 at 11:38:12AM +0100, Florian Westphal wrote:
> ebtables-nft-save will fail with
> "unknown meta key" when decoding "among" emulation with ipv4 or ipv6
> addresses included.
>
> This is because "meta protocol ip" is used as a dependency, but
> its never decoded anywhere.
>
> Skip this for now to restore the "ebtables/0006-flush_0"
> test case.
>
> Fixes: 25883ce88bfb ("nft: check for unknown meta keys")
> Signed-off-by: Florian Westphal <fw@strlen.de>
Best-effort approach. :)
Acked-by: Phil Sutter <phil@nwl.cc>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-30 14:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-30 10:38 [PATCH ebtables-nft] nft-bridge: work around recent "among" decode breakage Florian Westphal
2022-11-30 14:20 ` Phil Sutter
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).