summaryrefslogtreecommitdiffstats
path: root/src/expr/meta.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-03-22 20:59:42 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-03-23 12:46:25 +0100
commit305b4707d134362c9229241b922c3b2286d3c150 (patch)
tree9e54e6faa05d5022f2fc294f9ec62eb0cb7ca0df /src/expr/meta.c
parent8b2d59dadb920ed45dd347e2962ef4cf216d0c57 (diff)
src: restore static array with expression operations
We cannot use __attribute__((constructor)) to register the supported expressions in runtime when the library is statically linked. This lead us to some explicit libnftnl_init() function that needs to be called from the main() function of the client program. This patch reverts 4dd0772 ("expr: use __attribute__((constructor)) to register expression"). Reported-by: Laurent Bercot <ska-devel@skarnet.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expr/meta.c')
-rw-r--r--src/expr/meta.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/expr/meta.c b/src/expr/meta.c
index 2f5cddc..cee09dd 100644
--- a/src/expr/meta.c
+++ b/src/expr/meta.c
@@ -307,8 +307,3 @@ struct expr_ops expr_ops_meta = {
.xml_parse = nft_rule_expr_meta_xml_parse,
.json_parse = nft_rule_expr_meta_json_parse,
};
-
-static void __init expr_meta_init(void)
-{
- nft_expr_ops_register(&expr_ops_meta);
-}