diff options
author | Florian Westphal <fw@strlen.de> | 2019-02-08 17:02:23 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2019-02-08 21:26:16 +0100 |
commit | e3f195777ee54c7a57aab932b64c6ecbd782f68f (patch) | |
tree | f1336d55e55529df44d01c47f8fefd0b844bdfa8 /src/exthdr.c | |
parent | 72931553828af0ce85f0562b9ff8ec7f4d28e050 (diff) |
src: expr: remove expr_ops from struct expr
size of struct expr changes from 144 to 128 bytes on x86_64.
This doesn't look like much, but large rulesets can have tens of thousands
of expressions (each set element is represented by an expression).
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/exthdr.c')
-rw-r--r-- | src/exthdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exthdr.c b/src/exthdr.c index 8f803be6..91d2430a 100644 --- a/src/exthdr.c +++ b/src/exthdr.c @@ -90,7 +90,7 @@ struct expr *exthdr_expr_alloc(const struct location *loc, else tmpl = &exthdr_unknown_template; - expr = expr_alloc(loc, &exthdr_expr_ops, tmpl->dtype, + expr = expr_alloc(loc, EXPR_EXTHDR, tmpl->dtype, BYTEORDER_BIG_ENDIAN, tmpl->len); expr->exthdr.desc = desc; expr->exthdr.tmpl = tmpl; |