]> 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]>
Sun, 26 Apr 2015 22:34:13 +0000 (15:34 -0700)
print-pgm.c

index 58aa34695da88dac8bd41e0f73b62659253b47f2..58d1f8802ad48c13b3e89eaf6e9ffce3727538b7 100644 (file)
@@ -625,7 +625,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;
 
@@ -756,7 +756,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;
 
@@ -789,7 +789,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;