datatype: honor -nn option from inet_service_type_print()
Pablo Neira Ayuso
maintainerPATCH 1/1 datatype: honor -nn option from inet_service_type_print()
If -nn is passed, we have to display ports in numbers, not as a symbol.
Reported-by Florian Westphal <[email protected]>
Fixes ccc5da470e76 ("datatype: Replace getnameinfo() by internal lookup table")
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- src/datatype.c | 4 ++++ 1 file changed, 4 insertions(+)
src/datatype.c +4 -0
@@ -559,6 +559,10 @@ const struct datatype inet_protocol_type = {static void inet_service_type_print (const struct expr *expr) { +if (numeric_output >=NUMERIC_PORT ) { +integer_type_print (expr); +return ; + }symbolic_constant_print (&inet_service_tbl, expr, false); }
Signature · 1 line
2.1.4