summaryrefslogtreecommitdiffstats
path: root/include/payload.h
diff options
context:
space:
mode:
authorAlvaro Neira <alvaroneay@gmail.com>2014-09-30 17:21:38 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-09 13:22:55 +0200
commitffac724a876d1fb3ae08b7da727d251a6762358c (patch)
treee3d51d13203c0cd48427fbc1fac4765f5264f3ba /include/payload.h
parent389545e6fda863f8804b513b8dca4c4db4a7c5a6 (diff)
src: Enhance payload_gen_dependency()
With this patch, this function returns a statement with the new dependency that we want to add, instead of an expression. This change is needed in a follow up patch. Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/payload.h')
-rw-r--r--include/payload.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/payload.h b/include/payload.h
index d47e5645..95364af1 100644
--- a/include/payload.h
+++ b/include/payload.h
@@ -11,8 +11,9 @@ extern void payload_init_raw(struct expr *expr, enum proto_bases base,
unsigned int offset, unsigned int len);
struct eval_ctx;
+struct stmt;
extern int payload_gen_dependency(struct eval_ctx *ctx, const struct expr *expr,
- struct expr **res);
+ struct stmt **res);
extern bool payload_is_adjacent(const struct expr *e1, const struct expr *e2);
extern struct expr *payload_expr_join(const struct expr *e1,