From 39f15c243912a20f3014c0efba6b8dbc80caf0e9 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 7 Aug 2015 12:09:08 +0200 Subject: nft: support listing expressions that use non-byte header fields This allows to list rules that check fields that are not aligned on byte boundary. Signed-off-by: Florian Westphal --- include/payload.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/payload.h b/include/payload.h index 95364af1..ca9b0138 100644 --- a/include/payload.h +++ b/include/payload.h @@ -19,7 +19,10 @@ extern bool payload_is_adjacent(const struct expr *e1, const struct expr *e2); extern struct expr *payload_expr_join(const struct expr *e1, const struct expr *e2); +bool payload_expr_trim(struct expr *expr, struct expr *mask, + const struct proto_ctx *ctx); extern void payload_expr_expand(struct list_head *list, struct expr *expr, + struct expr *mask, const struct proto_ctx *ctx); extern void payload_expr_complete(struct expr *expr, const struct proto_ctx *ctx); -- cgit v1.2.3