X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/cf53dc05f1c854cc8cb94afd3409bbf033a055ed..3e12b0b42cd8d08df77a02374ffae47c23748bf1:/print-raw.c diff --git a/print-raw.c b/print-raw.c index a293c3d0..c8cba8f7 100644 --- a/print-raw.c +++ b/print-raw.c @@ -21,23 +21,14 @@ #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 -#include -#include -#include -#include - -struct mbuf; -struct rtentry; - -#include +#include #include #include @@ -46,20 +37,17 @@ struct rtentry; #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); /* @@ -78,4 +66,7 @@ raw_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p) if (xflag) default_print(p, caplen); putchar('\n'); + --infodelay; + if (infoprint) + info(0); }