summaryrefslogtreecommitdiffstats
path: root/include/tcpopt.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-05-08 13:08:34 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-11 12:16:51 +0200
commitf4c87d0a7037188ff69dff29d5154a102230b792 (patch)
tree13a4835de58c25faa0fbafa01e4dd6e67ef654d7 /include/tcpopt.h
parent08c11bc3b329523332f0d7e0eadf6bd4260de67c (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/tcpopt.h')
-rw-r--r--include/tcpopt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/tcpopt.h b/include/tcpopt.h
index 9be84817..ffdbcb02 100644
--- a/include/tcpopt.h
+++ b/include/tcpopt.h
@@ -29,6 +29,7 @@ enum tcpopt_hdr_types {
TCPOPTHDR_TIMESTAMP,
TCPOPTHDR_ECHO,
TCPOPTHDR_ECHO_REPLY,
+ __TCPOPTHDR_MAX
};
enum tcpopt_hdr_fields {
@@ -42,4 +43,7 @@ enum tcpopt_hdr_fields {
TCPOPTHDR_FIELD_TSVAL,
TCPOPTHDR_FIELD_TSECR,
};
+
+extern const struct exthdr_desc *tcpopthdr_protocols[__TCPOPTHDR_MAX];
+
#endif /* NFTABLES_TCPOPT_H */