]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-dtp.c
CI: Add warning exemptions for Sun C (suncc-5.14) on Solaris 10
[tcpdump] / print-dtp.c
index 1d790f9bd3a95de8b92a81cb863dd25ac3ba7276..9ff4c1c9a9ff5384836d3fb03b03e1bb777dccb4 100644 (file)
@@ -17,9 +17,7 @@
 
 /* \summary: Dynamic Trunking Protocol (DTP) printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -104,7 +102,7 @@ dtp_print(netdissect_options *ndo, const u_char *tptr, u_int length)
        case DTP_NEIGHBOR_TLV:
                 if (len != 10)
                     goto invalid;
-                ND_PRINT(", %s", GET_ETHERADDR_STRING(tptr+4));
+                ND_PRINT(", %s", GET_MAC48_STRING(tptr+4));
                 break;
 
         default: