From 0e3871cfd9a1e32a4ac041ce87a8057b11a89924 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 4 May 2021 13:41:38 +0200 Subject: exthdr: Implement SCTP Chunk matching Extend exthdr expression to support scanning through SCTP packet chunks and matching on fixed fields' values. Signed-off-by: Phil Sutter Acked-by: Florian Westphal --- src/json.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/json.c') diff --git a/src/json.c b/src/json.c index b611c3e0..a3d1008f 100644 --- a/src/json.c +++ b/src/json.c @@ -719,6 +719,8 @@ json_t *exthdr_expr_json(const struct expr *expr, struct output_ctx *octx) switch (expr->exthdr.op) { case NFT_EXTHDR_OP_IPV4: return json_pack("{s:o}", "ip option", root); + case NFT_EXTHDR_OP_SCTP: + return json_pack("{s:o}", "sctp chunk", root); default: return json_pack("{s:o}", "exthdr", root); } -- cgit v1.2.3