]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Print the formatted IP address, not the raw binary address, as a string.
authorGuy Harris <[email protected]>
Sun, 26 Apr 2015 22:34:13 +0000 (15:34 -0700)
committerGuy Harris <[email protected]>
Mon, 4 May 2015 01:01:08 +0000 (18:01 -0700)
print-pgm.c

index 6a8342539f477707d8d4dc05deb62d1c8c29b22f..d088f89983b8008d8db9ba52c4df586bc567534b 100644 (file)
@@ -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;