X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/585ac3db0663f474fd3417ea91953b58022cc9d9..5663cdab5ec8730ade9938c1ace64a4859d9ef7b:/print-arp.c diff --git a/print-arp.c b/print-arp.c index fbc8411e..d9a6535a 100644 --- a/print-arp.c +++ b/print-arp.c @@ -19,16 +19,16 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +#define NETDISSECT_REWORKED #ifdef HAVE_CONFIG_H #include "config.h" #endif #include -#include #include -#include "netdissect.h" +#include "interface.h" #include "addrtoname.h" #include "ether.h" #include "ethertype.h" @@ -234,9 +234,9 @@ atmarp_print(netdissect_options *ndo, } /* print operation */ - printf("%s%s ", + ND_PRINT((ndo, "%s%s ", ndo->ndo_vflag ? ", " : "", - tok2str(arpop_values, "Unknown (%u)", op)); + tok2str(arpop_values, "Unknown (%u)", op))); switch (op) { @@ -349,9 +349,9 @@ arp_print(netdissect_options *ndo, } /* print operation */ - printf("%s%s ", + ND_PRINT((ndo, "%s%s ", ndo->ndo_vflag ? ", " : "", - tok2str(arpop_values, "Unknown (%u)", op)); + tok2str(arpop_values, "Unknown (%u)", op))); switch (op) {