From c89a0801d07740eff531412fe35ea2c9faad82b0 Mon Sep 17 00:00:00 2001 From: Elise Lennion Date: Fri, 9 Dec 2016 22:35:13 -0200 Subject: 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 --- include/datatype.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/datatype.h b/include/datatype.h index d4fe817b..a7db1df4 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -191,7 +191,8 @@ extern struct error_record *symbolic_constant_parse(const struct expr *sym, extern void symbolic_constant_print(const struct symbol_table *tbl, const struct expr *expr, bool quotes); extern void symbol_table_print(const struct symbol_table *tbl, - const struct datatype *dtype); + const struct datatype *dtype, + enum byteorder byteorder); extern struct symbol_table *rt_symbol_table_init(const char *filename); extern void rt_symbol_table_free(struct symbol_table *tbl); -- cgit v1.2.3