diff options
author | Phil Sutter <phil@nwl.cc> | 2018-05-08 13:08:34 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-11 12:16:51 +0200 |
commit | f4c87d0a7037188ff69dff29d5154a102230b792 (patch) | |
tree | 13a4835de58c25faa0fbafa01e4dd6e67ef654d7 /include/meta.h | |
parent | 08c11bc3b329523332f0d7e0eadf6bd4260de67c (diff) |
libnftables: Make some arrays globally accessible
This removes static flag and adds declarations in headers for the
following arrays:
* ct_templates from src/ct.c
* mark_tbl from src/datatype.c
* meta_templates and devgroup_tbl from src/meta.c
* table_flags_name from src/rule.c
* set_stmt_op_names from src/statement.c
* tcpopthdr_protocols from src/tcpopt.c
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/meta.h')
-rw-r--r-- | include/meta.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/meta.h b/include/meta.h index 6086a71c..a49b4ff5 100644 --- a/include/meta.h +++ b/include/meta.h @@ -16,6 +16,8 @@ struct meta_template { unsigned int len; }; +extern const struct meta_template meta_templates[]; + #define META_TEMPLATE(__token, __dtype, __len, __byteorder) { \ .token = (__token), \ .dtype = (__dtype), \ @@ -40,4 +42,6 @@ extern const struct datatype devgroup_type; extern const struct datatype pkttype_type; extern const struct datatype ifname_type; +extern struct symbol_table *devgroup_tbl; + #endif /* NFTABLES_META_H */ |