]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-raw.c
switch from shell script to complex test
[tcpdump] / print-raw.c
index a89af5bfec294d26421cdc2be3e5e8bc36b18fbd..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 <netdissect-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);