path: root/include/tcpopt.h
diff options
authorPhil Sutter <>2017-03-10 18:13:50 +0100
committerPablo Neira Ayuso <>2017-03-10 19:01:21 +0100
commit627be570eff8f05849614a257e6fa45c744f4dbd (patch)
treebf434417d7d862ab4ee74cb7f330729fa84149fc /include/tcpopt.h
parent9fd9baba43c8ee17f944a1157b77a8e47cb9ba41 (diff)
exthdr: Add support for exthdr specific flags
This allows to have custom flags in exthdr expression, which is necessary for upcoming existence checks (of both IPv6 extension headers as well as TCP options). Signed-off-by: Phil Sutter <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/tcpopt.h')
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tcpopt.h b/include/tcpopt.h
index f43a7eb7..412d02e7 100644
--- a/include/tcpopt.h
+++ b/include/tcpopt.h
@@ -8,7 +8,8 @@ extern struct expr *tcpopt_expr_alloc(const struct location *loc,
uint8_t type, uint8_t field);
extern void tcpopt_init_raw(struct expr *expr, uint8_t type,
- unsigned int offset, unsigned int len);
+ unsigned int offset, unsigned int len,
+ uint32_t flags);
extern bool tcpopt_find_template(struct expr *expr, const struct expr *mask,
unsigned int *shift);