summaryrefslogtreecommitdiffstats
path: root/src/tcpopt.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-11-02 20:10:25 +0100
committerFlorian Westphal <fw@strlen.de>2020-11-09 12:19:31 +0100
commit881d8cb21c0b9168787b932f41b801593bde2216 (patch)
treeb5322deba14ab126822709b4a7691c6702d13f3a /src/tcpopt.c
parent24d8da3083422da8336eeed2ee23b2ccf598ba5a (diff)
tcp: add raw tcp option match support
tcp option @42,16,4 (@kind,offset,length). Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/tcpopt.c')
-rw-r--r--src/tcpopt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tcpopt.c b/src/tcpopt.c
index 1cf97a56..05b5ee6e 100644
--- a/src/tcpopt.c
+++ b/src/tcpopt.c
@@ -197,6 +197,8 @@ void tcpopt_init_raw(struct expr *expr, uint8_t type, unsigned int off,
if (flags & NFT_EXTHDR_F_PRESENT)
datatype_set(expr, &boolean_type);
+ else
+ datatype_set(expr, &integer_type);
if (type >= array_size(tcpopt_protocols))
return;