#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.28 1999-11-21 09:36:58 fenner Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.35 2000-09-28 06:43:05 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
#include <sys/file.h>
#include <sys/ioctl.h>
-#if __STDC__
struct mbuf;
struct rtentry;
-#endif
-#include <net/if.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
-#include <netinet/ip.h>
-#include <netinet/if_ether.h>
-#include <netinet/ip_var.h>
-#include <netinet/udp.h>
-#include <netinet/udp_var.h>
-#include <netinet/tcp.h>
#include <pcap.h>
#include <stdio.h>
#include "interface.h"
#include "addrtoname.h"
+#include "ip.h"
+
#ifndef AF_NS
#define AF_NS 6 /* XEROX NS protocols */
#endif
null_print(p, ip, length);
switch (ip->ip_v) {
- case 4 :
- ip_print((const void *)ip, length);
+ case 4:
+ ip_print((const u_char *)ip, length);
break;
#ifdef INET6
case 6:
- ipv6_print((const void *)ip, length);
+ ip6_print((const u_char *)ip, length);
break;
#endif /* INET6 */
- default :
+ default:
printf("ip v%d", ip->ip_v);
break;
}