aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2024-08-27 16:38:35 +0200
committerLuca Deri <deri@ntop.org>2024-08-27 16:38:35 +0200
commitd769b23e05f93158302cf6904b182860b05545e9 (patch)
treeba349c62e51e785f65af61d8be1f143e9620ab02 /example/ndpiReader.c
parent5436dddef55e068095ca56b114715a91a551bf26 (diff)
Added print_ndpi_address_port in nDPi API
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index b1fbfd7dd..91466bab4 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1548,7 +1548,7 @@ void print_bin(FILE *fout, const char *label, struct ndpi_bin *b) {
/* ********************************** */
-static void print_ndpi_address_port(FILE *out, const char *label, ndpi_address_port *ap) {
+static void print_ndpi_address_port_file(FILE *out, const char *label, ndpi_address_port *ap) {
if(ap->port != 0) {
char buf[INET6_ADDRSTRLEN];
@@ -1932,11 +1932,11 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa
}
}
- print_ndpi_address_port(out, "Mapped IP/Port", &flow->stun.mapped_address);
- print_ndpi_address_port(out, "Peer IP/Port", &flow->stun.peer_address);
- print_ndpi_address_port(out, "Relayed IP/Port", &flow->stun.relayed_address);
- print_ndpi_address_port(out, "Rsp Origin IP/Port", &flow->stun.response_origin);
- print_ndpi_address_port(out, "Other IP/Port", &flow->stun.other_address);
+ print_ndpi_address_port_file(out, "Mapped IP/Port", &flow->stun.mapped_address);
+ print_ndpi_address_port_file(out, "Peer IP/Port", &flow->stun.peer_address);
+ print_ndpi_address_port_file(out, "Relayed IP/Port", &flow->stun.relayed_address);
+ print_ndpi_address_port_file(out, "Rsp Origin IP/Port", &flow->stun.response_origin);
+ print_ndpi_address_port_file(out, "Other IP/Port", &flow->stun.other_address);
if(flow->http.url[0] != '\0') {
ndpi_risk_enum risk = ndpi_validate_url(flow->http.url);