X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f555c163f90c9de17ebcef8313f86404c5174ca9..64e81f2917f6865dff8df96e18cec1b8bf2fa836:/print-raw.c diff --git a/print-raw.c b/print-raw.c index a0452aec..7502394a 100644 --- a/print-raw.c +++ b/print-raw.c @@ -21,7 +21,11 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-raw.c,v 1.22 1999-10-07 23:47:12 mcr Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-raw.c,v 1.33 2000-10-06 04:23:13 guy Exp $ (LBL)"; +#endif + +#ifdef HAVE_CONFIG_H +#include "config.h" #endif #include @@ -30,21 +34,7 @@ static const char rcsid[] = #include #include -#if __STDC__ -struct mbuf; -struct rtentry; -#endif -#include - #include -#include -#include -#include -#include -#include -#include -#include -#include #include #include @@ -53,10 +43,6 @@ 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. */ @@ -80,7 +66,7 @@ raw_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p) if (eflag) printf("ip: "); - ip_print(p, length); + ipN_print(p, length); if (xflag) default_print(p, caplen);