From ccc5da470e76032f8e175920553516835efb30f1 Mon Sep 17 00:00:00 2001 From: Elise Lennion Date: Tue, 29 Nov 2016 23:12:37 -0200 Subject: datatype: Replace getnameinfo() by internal lookup table To avoid exceeding the inputs number limit of the flex scanner used, when calling getnameinfo() in inet_service_type_print(). The new symbol_table was associated with inet_service_type, to enable listing all pre-defined services using nft command line tool. The listed services are all well-known and registered ports of my local /etc/services file, from Ubuntu 16.04. Service numbers are converted to respect network byte order. Signed-off-by: Elise Lennion Signed-off-by: Pablo Neira Ayuso --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index d021cb7f..2a69e198 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -52,6 +52,7 @@ nft_SOURCES = main.c \ erec.c \ mnl.c \ iface.c \ + services.c \ scanner.l \ parser_bison.y -- cgit v1.2.3