summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <ffmancera@riseup.net>2019-05-24 15:06:47 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-05-24 21:29:54 +0200
commitf1e8a129ee428419a0d5a45a2f410e8e4008d109 (patch)
tree7216ec99ab5873ca6706c766a04b4d0209efef90 /include
parent4b0f2a712b5792d2842d89fe68d4230e0eb05c7e (diff)
src: Introduce chain_expr in jump and goto statements
Introduce expressions as a chain in jump and goto statements. This is going to be used to support variables as a chain in the following patches. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/expression.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/expression.h b/include/expression.h
index 6416ac09..ef412554 100644
--- a/include/expression.h
+++ b/include/expression.h
@@ -240,7 +240,7 @@ struct expr {
struct {
/* EXPR_VERDICT */
int verdict;
- const char *chain;
+ struct expr *chain;
};
struct {
/* EXPR_VALUE */
@@ -403,7 +403,7 @@ extern void relational_expr_pctx_update(struct proto_ctx *ctx,
const struct expr *expr);
extern struct expr *verdict_expr_alloc(const struct location *loc,
- int verdict, const char *chain);
+ int verdict, struct expr *chain);
extern struct expr *symbol_expr_alloc(const struct location *loc,
enum symbol_types type, struct scope *scope,