From 0e1824475e2e7aee09dd2d5c38fc4ebd4b7ab8bb Mon Sep 17 00:00:00 2001 From: Elise Lennion Date: Mon, 19 Dec 2016 19:11:04 -0300 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- src/ct.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ct.c') 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), -- cgit v1.2.3