path: root/include
diff options
authorElise Lennion <>2016-12-09 22:35:13 -0200
committerPablo Neira Ayuso <>2016-12-10 14:12:31 +0100
commitc89a0801d07740eff531412fe35ea2c9faad82b0 (patch)
treee045033ff863ac25f9bf00fc663d31ea872197b4 /include
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 'include')
1 files changed, 2 insertions, 1 deletions
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);