diff options
author | Florian Westphal <fw@strlen.de> | 2015-08-07 12:09:08 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2015-09-18 00:06:49 +0200 |
commit | 39f15c243912a20f3014c0efba6b8dbc80caf0e9 (patch) | |
tree | f0724240418d2c93175669bb575913edc8630b3c /include | |
parent | e540acb8c1e16c9a9afc4c800ce524e47be803d4 (diff) |
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 <fw@strlen.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/payload.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |