path: root/src/expression.c
diff options
authorElise Lennion <>2016-12-09 22:35:13 -0200
committerPablo Neira Ayuso <>2016-12-10 14:12:31 +0100
commitc89a0801d07740eff531412fe35ea2c9faad82b0 (patch)
treee045033ff863ac25f9bf00fc663d31ea872197b4 /src/expression.c
parent23b760a774cf12dd18fb68a84d502662ae6eebd8 (diff)
datatype: Display pre-defined inet_service values in host byte order
nft describe displays, to the user, which values are available for a selector, then the values should be in host byte order. Variable size was replaced by len to better match the common pattern. Reported-by: Pablo Neira Ayuso <> Fixes: ccc5da470e76 ("datatype: Replace getnameinfo() by internal lookup table") Signed-off-by: Elise Lennion <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src/expression.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expression.c b/src/expression.c
index a10af5d3..2aada77d 100644
--- a/src/expression.c
+++ b/src/expression.c
@@ -115,7 +115,8 @@ void expr_describe(const struct expr *expr)
if (expr->dtype->sym_tbl != NULL) {
printf("\npre-defined symbolic constants:\n");
- symbol_table_print(expr->dtype->sym_tbl, expr->dtype);
+ symbol_table_print(expr->dtype->sym_tbl, expr->dtype,
+ expr->byteorder);