X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/fe3253b9b8fad9e75f863157eba0780418182f17..ff23dba40e728115b878b009ec299b47b924991d:/print-raw.c diff --git a/print-raw.c b/print-raw.c index 85e8914c..d20387c6 100644 --- a/print-raw.c +++ b/print-raw.c @@ -19,17 +19,13 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +#define NETDISSECT_REWORKED #ifdef HAVE_CONFIG_H #include "config.h" #endif #include -#include -#include -#include - -#include "addrtoname.h" #include "interface.h" /* @@ -37,12 +33,12 @@ */ u_int -raw_if_print(const struct pcap_pkthdr *h, const u_char *p) +raw_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) { - if (eflag) - printf("ip: "); + if (ndo->ndo_eflag) + ND_PRINT((ndo, "ip: ")); - ipN_print(p, h->len); + ipN_print(ndo, p, h->len); return (0); }