From 644ad34962365fa794b8f58e01a7290496f3d6ef Mon Sep 17 00:00:00 2001 From: Toni Date: Wed, 21 Sep 2022 18:24:04 +0200 Subject: Improved NATPMP dissection. (#1745) Signed-off-by: Toni Uhlig Signed-off-by: Toni Uhlig --- example/ndpiReader.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 9ad07f82c..3dde6be3c 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1514,6 +1514,15 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa } break; + case INFO_NATPMP: + if (flow->natpmp.internal_port != 0 && flow->natpmp.ip[0] != '\0') + { + fprintf(out, "[Result: %u][Internal Port: %u][External Port: %u][External Address: %s]", + flow->natpmp.result_code, flow->natpmp.internal_port, flow->natpmp.external_port, + flow->natpmp.ip); + } + break; + case INFO_FTP_IMAP_POP_SMTP: if (flow->ftp_imap_pop_smtp.username[0] != '\0') { -- cgit v1.2.3