]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-loopback.c
Printers must include 'netdissect.h', not 'interface.h'
[tcpdump] / print-loopback.c
index 20eee12f896a03e5cac15f602c0464eaece88b8c..e54d1dbfa12b12ed2081aab8ae8434e5ee5214fc 100644 (file)
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
 #include <tcpdump-stdinc.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "extract.h"
 #include "ether.h"
 #include "addrtoname.h"
@@ -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));