summaryrefslogtreecommitdiffstats
path: root/src/ipopt.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-10-21 23:54:17 +0200
committerFlorian Westphal <fw@strlen.de>2020-11-09 12:19:31 +0100
commit24d8da3083422da8336eeed2ee23b2ccf598ba5a (patch)
treeaad5a98e023ca49a5db923ec8ad8c8899482bf57 /src/ipopt.c
parent2e1f821d713aa44717b38901ee80cac8e2aa0335 (diff)
tcpopt: allow to check for presence of any tcp option
nft currently doesn't allow to check for presence of arbitrary tcp options. Only known options where nft provides a template can be tested for. This allows to test for presence of raw protocol values as well. Example: tcp option 42 exists Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/ipopt.c')
-rw-r--r--src/ipopt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ipopt.c b/src/ipopt.c
index 7ecb8b9c..5f9f908c 100644
--- a/src/ipopt.c
+++ b/src/ipopt.c
@@ -103,6 +103,7 @@ struct expr *ipopt_expr_alloc(const struct location *loc, uint8_t type,
expr->exthdr.tmpl = tmpl;
expr->exthdr.op = NFT_EXTHDR_OP_IPV4;
expr->exthdr.offset = tmpl->offset + calc_offset(desc, tmpl, ptr);
+ expr->exthdr.raw_type = desc->type;
return expr;
}