]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-loopback.c
interface.h,netdissect.h: Cleaning unused items
[tcpdump] / print-loopback.c
index c0297b8d6cc6da7a41dfe0602f2d55d03caccaf5..481cf6eef801f68aba4b94075833c3cbf167ca0e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This module implements decoding of the the Loopback Protocol, originally
+ * This module implements decoding of the Loopback Protocol, originally
  * defined as the Configuration Testing Protocol. It is based on the following
  * specification:
  * http://www.mit.edu/people/jhawk/ctp.pdf
@@ -30,7 +30,6 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -85,7 +84,7 @@ loopback_message_print(netdissect_options *ndo, const u_char *cp, const u_int le
                                goto corrupt;
                        /* forwarding address */
                        ND_TCHECK2(*cp, ETHER_ADDR_LEN);
-                       ND_PRINT((ndo, ", forwarding address %s", etheraddr_string(cp)));
+                       ND_PRINT((ndo, ", forwarding address %s", etheraddr_string(ndo, cp)));
                        cp += ETHER_ADDR_LEN;
                        /* data */
                        ND_PRINT((ndo, ", data (%u octets)", len - 8));