X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/69f6f4392a3dd9b25467da61bf112d34cc7d558d..9ab2f1792276f15e9d7082433bfe9f4d988bd51a:/print-raw.c diff --git a/print-raw.c b/print-raw.c index 490eac3e..74d63639 100644 --- a/print-raw.c +++ b/print-raw.c @@ -25,10 +25,6 @@ #include -#include -#include -#include - #include "interface.h" /* @@ -36,12 +32,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); }