From: Guy Harris Date: Sun, 26 Apr 2015 22:34:13 +0000 (-0700) Subject: Print the formatted IP address, not the raw binary address, as a string. X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/1f2c7dfc65a27d97c55166300e32f924c5e08822 Print the formatted IP address, not the raw binary address, as a string. --- diff --git a/print-pgm.c b/print-pgm.c index 6a834253..d088f899 100644 --- a/print-pgm.c +++ b/print-pgm.c @@ -626,7 +626,7 @@ pgm_print(netdissect_options *ndo, bp += addr_size; inet_ntop(nla_af, nla, nla_buf, sizeof(nla_buf)); - ND_PRINT((ndo, " REDIRECT %s", (char *)nla)); + ND_PRINT((ndo, " REDIRECT %s", nla_buf)); opts_len -= 4 + addr_size; break; @@ -757,7 +757,7 @@ pgm_print(netdissect_options *ndo, bp += addr_size; inet_ntop(nla_af, nla, nla_buf, sizeof(nla_buf)); - ND_PRINT((ndo, " PGMCC DATA %u %s", offset, (char*)nla)); + ND_PRINT((ndo, " PGMCC DATA %u %s", offset, nla_buf)); opts_len -= 16; break; @@ -790,7 +790,7 @@ pgm_print(netdissect_options *ndo, bp += addr_size; inet_ntop(nla_af, nla, nla_buf, sizeof(nla_buf)); - ND_PRINT((ndo, " PGMCC FEEDBACK %u %s", offset, (char*)nla)); + ND_PRINT((ndo, " PGMCC FEEDBACK %u %s", offset, nla_buf)); opts_len -= 16; break;