netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft] src: tunnel: handle tunnel delete command
@ 2025-10-07 11:06 Florian Westphal
  2025-10-07 11:09 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Westphal @ 2025-10-07 11:06 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

'delete tunnel foo bar' causes nft to bug out.

Fixes: 35d9c77c5745 ("src: add tunnel template support")
Signed-off-by: Florian Westphal <fw@strlen.de>
---
 src/evaluate.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/evaluate.c b/src/evaluate.c
index 322e91acf625..a5cc41819198 100644
--- a/src/evaluate.c
+++ b/src/evaluate.c
@@ -6134,6 +6134,9 @@ static int cmd_evaluate_delete(struct eval_ctx *ctx, struct cmd *cmd)
 	case CMD_OBJ_SYNPROXY:
 		obj_del_cache(ctx, cmd, NFT_OBJECT_SYNPROXY);
 		return 0;
+	case CMD_OBJ_TUNNEL:
+		obj_del_cache(ctx, cmd, NFT_OBJECT_TUNNEL);
+		return 0;
 	default:
 		BUG("invalid command object type %u\n", cmd->obj);
 	}
-- 
2.49.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH nft] src: tunnel: handle tunnel delete command
  2025-10-07 11:06 [PATCH nft] src: tunnel: handle tunnel delete command Florian Westphal
@ 2025-10-07 11:09 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2025-10-07 11:09 UTC (permalink / raw)
  To: Florian Westphal; +Cc: netfilter-devel

On Tue, Oct 07, 2025 at 01:06:31PM +0200, Florian Westphal wrote:
> 'delete tunnel foo bar' causes nft to bug out.
> 
> Fixes: 35d9c77c5745 ("src: add tunnel template support")
> Signed-off-by: Florian Westphal <fw@strlen.de>

Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-10-07 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-07 11:06 [PATCH nft] src: tunnel: handle tunnel delete command Florian Westphal
2025-10-07 11:09 ` Pablo Neira Ayuso

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).