summaryrefslogtreecommitdiffstats
path: root/src/ct.c
diff options
context:
space:
mode:
authorElise Lennion <elise.lennion@gmail.com>2016-12-19 19:11:04 -0300
committerPablo Neira Ayuso <pablo@netfilter.org>2016-12-20 20:23:33 +0100
commit0e1824475e2e7aee09dd2d5c38fc4ebd4b7ab8bb (patch)
treebd874497cbc923152ade88b453141f82ffb0182e /src/ct.c
parent68de70f2b3fc64b7016da48530946165c9986780 (diff)
expression: Show the base which pre-defined constants are displayed
so the user know how we express it. The base was added to all symbol tables, which are associated with datatype->sym_tbl, so they are displayed in the right base. Signed-off-by: Elise Lennion <elise.lennion@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/ct.c')
-rw-r--r--src/ct.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ct.c b/src/ct.c
index e5327539..d0792890 100644
--- a/src/ct.c
+++ b/src/ct.c
@@ -33,6 +33,7 @@
#define CONNLABEL_CONF DEFAULT_INCLUDE_PATH "/connlabel.conf"
static const struct symbol_table ct_state_tbl = {
+ .base = BASE_HEXADECIMAL,
.symbols = {
SYMBOL("invalid", NF_CT_STATE_INVALID_BIT),
SYMBOL("new", NF_CT_STATE_BIT(IP_CT_NEW)),
@@ -54,6 +55,7 @@ static const struct datatype ct_state_type = {
};
static const struct symbol_table ct_dir_tbl = {
+ .base = BASE_DECIMAL,
.symbols = {
SYMBOL("original", IP_CT_DIR_ORIGINAL),
SYMBOL("reply", IP_CT_DIR_REPLY),
@@ -75,6 +77,7 @@ static const struct symbol_table ct_status_tbl = {
/*
* There are more, but most of them don't make sense for filtering.
*/
+ .base = BASE_HEXADECIMAL,
.symbols = {
SYMBOL("expected", IPS_EXPECTED),
SYMBOL("seen-reply", IPS_SEEN_REPLY),