From e3f195777ee54c7a57aab932b64c6ecbd782f68f Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 8 Feb 2019 17:02:23 +0100 Subject: 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 --- src/tcpopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tcpopt.c') diff --git a/src/tcpopt.c b/src/tcpopt.c index 52c8c07c..6920ff94 100644 --- a/src/tcpopt.c +++ b/src/tcpopt.c @@ -181,7 +181,7 @@ struct expr *tcpopt_expr_alloc(const struct location *loc, uint8_t type, optnum = tcpopt_find_optnum(type); - 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; -- cgit v1.2.3