path: root/include
diff options
authorManuel Messner <>2017-02-07 03:14:10 +0100
committerFlorian Westphal <>2017-02-12 15:34:47 +0100
commita0cecb3ea474ad24adefcc388267684f2fddd69d (patch)
tree1b02005826ff852c638fc29f1ee32d12eaeaa3e2 /include
parent92632e23d96f56083fe77972be7fc5ee05a69d50 (diff)
exthdr: prepare for tcp support
right now exthdr only deals with ipv6 extension headers, followup patch will enable tcp option matching. This adds the 'op' arg to exthdr_init. Signed-off-by: Manuel Messner <> Reviewed-by: Florian Westphal <> Signed-off-by: Florian Westphal <>
Diffstat (limited to 'include')
1 files changed, 2 insertions, 1 deletions
diff --git a/include/exthdr.h b/include/exthdr.h
index d17841bc..93a53f30 100644
--- a/include/exthdr.h
+++ b/include/exthdr.h
@@ -21,7 +21,8 @@ extern struct expr *exthdr_expr_alloc(const struct location *loc,
uint8_t type);
extern void exthdr_init_raw(struct expr *expr, uint8_t type,
- unsigned int offset, unsigned int len);
+ unsigned int offset, unsigned int len,
+ enum nft_exthdr_op op);
extern bool exthdr_find_template(struct expr *expr, const struct expr *mask,
unsigned int *shift);