#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.24 1999-10-07 23:47:12 mcr Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.26 1999-10-30 05:11:18 itojun Exp $ (LBL)";
#endif
#include <sys/param.h>
#include <netinet/udp.h>
#include <netinet/udp_var.h>
#include <netinet/tcp.h>
-#include <netinet/tcpip.h>
#include <pcap.h>
#include <stdio.h>
#include <string.h>
+#ifdef INET6
+#include <netinet/ip6.h>
+#endif
+
#include "interface.h"
#include "addrtoname.h"
printf("ip: ");
break;
+#ifdef INET6
+ case AF_INET6:
+ printf("ip6: ");
+ break;
+#endif
+
case AF_NS:
printf("ns: ");
break;
if (eflag)
null_print(p, ip, length);
+#ifndef INET6
ip_print((const u_char *)ip, length);
+#else
+ if (ip->ip_v == IPVERSION)
+ ip_print((const u_char *)ip, length);
+ else if (ip->ip_v == 6)
+ ip6_print((const u_char *)ip, length);
+#endif /*INET6*/
if (xflag)
default_print((const u_char *)ip, caplen - NULL_HDRLEN);