Skip to contentSkip to conversation

src: tunnel: handle tunnel delete command

PATCH In review Florian Westphal 2 participants 2 messages Oct 7, 2025 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 src: tunnel: handle tunnel delete command

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

Fixes 35d9c77c5745 ("src: add tunnel template support")
---
 src/evaluate.c | 3 +++
 1 file changed, 3 insertions(+)
src/evaluate.c +3 -0
index 322e91acf625..a5cc41819198 100644
@@ -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);
 	}
Signature · 1 line
2.49.1