]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-raw.c
Rename two pcapng test files to .pcapng
[tcpdump] / print-raw.c
index 83f66b488efa66bbc87a0858b09dab076ff4ccd4..8d27a06ace4867f76fb3849ca350c43094c3765b 100644 (file)
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
+/* \summary: Raw IP printer */
+
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <tcpdump-stdinc.h>
+#include "netdissect-stdinc.h"
 
 #include "netdissect.h"
 
@@ -34,8 +36,9 @@
 u_int
 raw_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
 {
+       ndo->ndo_protocol = "raw_if";
        if (ndo->ndo_eflag)
-               ND_PRINT((ndo, "ip: "));
+               ND_PRINT("ip: ");
 
        ipN_print(ndo, p, h->len);