* [PATCH iptables] nft-shared: replace nftnl_expr_get_data() by nftnl_expr_get()
@ 2022-11-14 16:57 Pablo Neira Ayuso
2022-11-15 16:38 ` Phil Sutter
0 siblings, 1 reply; 2+ messages in thread
From: Pablo Neira Ayuso @ 2022-11-14 16:57 UTC (permalink / raw)
To: netfilter-devel
Replace nftnl_expr_get_data() alias by real function call.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
iptables/nft-shared.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c
index 996cff996c15..2c1d317802fd 100644
--- a/iptables/nft-shared.c
+++ b/iptables/nft-shared.c
@@ -1081,7 +1081,7 @@ static void nft_parse_immediate(struct nft_xt_ctx *ctx, struct nftnl_expr *e)
const void *imm_data;
uint32_t len;
- imm_data = nftnl_expr_get_data(e, NFTNL_EXPR_IMM_DATA, &len);
+ imm_data = nftnl_expr_get(e, NFTNL_EXPR_IMM_DATA, &len);
dreg = nft_xt_ctx_get_dreg(ctx, nftnl_expr_get_u32(e, NFTNL_EXPR_IMM_DREG));
if (!dreg)
return;
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-15 16:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-14 16:57 [PATCH iptables] nft-shared: replace nftnl_expr_get_data() by nftnl_expr_get() Pablo Neira Ayuso
2022-11-15 16:38 ` Phil Sutter
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.