diff options
author | Elise Lennion <elise.lennion@gmail.com> | 2016-12-10 21:59:36 -0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-12-11 20:32:35 +0100 |
commit | d03de764e498954a08251dee9e820347ad177970 (patch) | |
tree | d927f6e2a99b3c153ae9cdd9206170b7e0b26f74 /src/services.c | |
parent | c89a0801d07740eff531412fe35ea2c9faad82b0 (diff) |
datatype: Display pre-defined inet_service values in decimal base
because the convention is to represent ports in base 10.
gcc-workaround is no longer needed and was removed.
Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/services.c')
-rw-r--r-- | src/services.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/services.c b/src/services.c index 0ba195e9..83c26723 100644 --- a/src/services.c +++ b/src/services.c @@ -2,7 +2,8 @@ #include <datatype.h> const struct symbol_table inet_service_tbl = { - .symbols = { + .base = BASE_DECIMAL, + .symbols = { SYMBOL("tcpmux", __constant_htons(1)), SYMBOL("echo", __constant_htons(7)), SYMBOL("discard", __constant_htons(9)), |