X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/88e479b75ea97730bf265a2371c0658a401eae92..ff2bbd6ffe2ba25884e36f2bcc97fb156cf280e6:/print-raw.c diff --git a/print-raw.c b/print-raw.c index 2aa07f20..23ced7b0 100644 --- a/print-raw.c +++ b/print-raw.c @@ -19,28 +19,27 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +/* \summary: Raw IP printer */ + #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include - -#include -#include +#include "netdissect-stdinc.h" -#include "interface.h" +#include "netdissect.h" /* * The DLT_RAW packet has no header. It contains a raw IP packet. */ 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("ip: "); - ipN_print(p, h->len); + ipN_print(ndo, p, h->len); return (0); }