diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-28 22:26:56 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-29 02:16:44 +0200 |
commit | 0c0f90bcca71b35f3d50bad0c612ca1ce46d1351 (patch) | |
tree | 8504d78fefeb75b88540a78220254f0f856137bd /src/meta.c | |
parent | 9e45a28ca467f08b9c01baf73d1849055e53ea0b (diff) |
json: Fix compile error
Commit 9e45a28ca467f ("src: honor /etc/services") broke compiling with
JSON support enabled: inet_service_type_print() is not suited for
converting inet_service datatype into JSON at all.
In order to avoid having to replicate the port value resolving into
human-readable name in inet_service_type_json(), just return a numeric
value. At least for JSON output, this probably makes most sense either
way since the output is expected to be parsed by scripts which have an
easier time with numers than names anyway.
Fixes: 9e45a28ca467f ("src: honor /etc/services")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/meta.c')
0 files changed, 0 insertions, 0 deletions