#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-raw.c,v 1.32 2000-09-29 04:58:47 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-raw.c,v 1.37 2002-09-05 21:25:46 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#include <sys/param.h>
-#include <sys/time.h>
-#include <sys/socket.h>
-#include <sys/file.h>
-#include <sys/ioctl.h>
-
-struct mbuf;
-struct rtentry;
-
-#include <netinet/in.h>
+#include <tcpdump-stdinc.h>
#include <pcap.h>
#include <stdio.h>
#include "addrtoname.h"
#include "interface.h"
-#ifndef AF_NS
-#define AF_NS 6 /* XEROX NS protocols */
-#endif
-
/*
* The DLT_RAW packet has no header. It contains a raw IP packet.
*/
void
-raw_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
+raw_if_print(u_char *user _U_, const struct pcap_pkthdr *h, const u_char *p)
{
u_int length = h->len;
u_int caplen = h->caplen;
+ ++infodelay;
ts_print(&h->ts);
/*
if (xflag)
default_print(p, caplen);
putchar('\n');
+ --infodelay;
+ if (infoprint)
+ info(0);
}