From a0cecb3ea474ad24adefcc388267684f2fddd69d Mon Sep 17 00:00:00 2001 From: Manuel Messner Date: Tue, 7 Feb 2017 03:14:10 +0100 Subject: 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 --- include/exthdr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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); -- cgit v1.2.3