on some architecutrees, sizeof(void *) > sizeof(int). don't try to cast
pointer to int to check alignment issues.
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.12 2000-09-29 04:58:41 guy Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.13 2000-10-03 04:19:07 itojun Exp $";
#endif
#ifdef HAVE_CONFIG_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <string.h>
#include "interface.h"
#include "addrtoname.h"
* This will never happen with BPF. It does happen raw packet
* dumps from -r.
*/
- if ((int)ip6 & 15) {
+ if ((u_long)ip6 & 15) {
static u_char *abuf;
if (abuf == NULL)
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-rip.c,v 1.46 2000-09-29 04:58:47 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-rip.c,v 1.47 2000-10-03 04:19:07 itojun Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
#include <stdio.h>
#include <ctype.h>
+#include <string.h>
#include "interface.h"
#include "addrtoname.h"
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-token.c,v 1.6 2000-09-29 04:58:52 guy Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-token.c,v 1.7 2000-10-03 04:19:08 itojun Exp $";
#endif
#ifdef HAVE_CONFIG_H
#include <pcap.h>
#include <stdio.h>
+#include <string.h>
#include "interface.h"
#include "addrtoname.h"
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.81 2000-10-03 02:55:02 itojun Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.82 2000-10-03 04:19:08 itojun Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
#include <rpc/rpc.h>
#include <stdio.h>
+#include <string.h>
#ifdef INET6
#include <netinet/ip6.h>