summaryrefslogtreecommitdiffstats
path: root/include/expression.h
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2020-03-03 09:48:29 +0000
committerFlorian Westphal <fw@strlen.de>2020-03-04 23:36:27 +0100
commit4ac2cd199fbae8f52d43db7c817527ba1c5dedaa (patch)
tree801d10a5629204b282d14ee24e1b869efce2fb2a /include/expression.h
parent5f38f3f3afe48213e34654b5a5464af67e40a0e5 (diff)
evaluate: don't evaluate payloads twice.
Payload munging means that evaluation of payload expressions may not be idempotent. Add a flag to prevent them from being evaluated more than once. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include/expression.h')
-rw-r--r--include/expression.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/expression.h b/include/expression.h
index 62fbbbb5..87c39e5d 100644
--- a/include/expression.h
+++ b/include/expression.h
@@ -300,6 +300,7 @@ struct expr {
enum proto_bases base;
unsigned int offset;
bool is_raw;
+ bool evaluated;
} payload;
struct {
/* EXPR_EXTHDR */