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/meta.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/meta.c') diff --git a/src/meta.c b/src/meta.c index 574fc500..cb7c1368 100644 --- a/src/meta.c +++ b/src/meta.c @@ -198,6 +198,7 @@ const struct datatype ifindex_type = { }; static const struct symbol_table arphrd_tbl = { + .base = BASE_HEXADECIMAL, .symbols = { SYMBOL("ether", ARPHRD_ETHER), SYMBOL("ppp", ARPHRD_PPP), @@ -326,6 +327,7 @@ static const struct datatype gid_type = { }; static const struct symbol_table pkttype_type_tbl = { + .base = BASE_DECIMAL, .symbols = { SYMBOL("host", PACKET_HOST), SYMBOL("unicast", PACKET_HOST), /* backwards compat */ -- cgit v1.2.3