Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 12:53:39 -0400 (EDT)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        freebsd-alpha@freebsd.org
Subject:   tcpdump / libpcap
Message-ID:  <15077.44947.898446.277008@grasshopper.cs.duke.edu>

next in thread | raw e-mail | index | archive | help

I just noticed that tcpdump / libpcap is broken, probably since the
upgrade of tcpdump a few weeks back.

I've contaced the maintainer, but in the interim the appended patch
fixes it.

Drew

Index: contrib/libpcap/bpf/net/bpf.h
===================================================================
RCS file: /home/ncvs/src/contrib/libpcap/bpf/net/bpf.h,v
retrieving revision 1.3
diff -u -r1.3 bpf.h
--- contrib/libpcap/bpf/net/bpf.h	2001/04/03 04:32:48	1.3
+++ contrib/libpcap/bpf/net/bpf.h	2001/04/24 16:26:53
@@ -53,7 +53,7 @@
  * Alignment macros.  BPF_WORDALIGN rounds up to the next 
  * even multiple of BPF_ALIGNMENT. 
  */
-#define BPF_ALIGNMENT sizeof(bpf_int32)
+#define BPF_ALIGNMENT sizeof(long)
 #define BPF_WORDALIGN(x) (((x)+(BPF_ALIGNMENT-1))&~(BPF_ALIGNMENT-1))
 
 #define BPF_MAXINSNS 512
Index: usr.sbin/tcpdump/tcpdump/config.h
===================================================================
RCS file: /home/ncvs/src/usr.sbin/tcpdump/tcpdump/config.h,v
retrieving revision 1.2
diff -u -r1.2 config.h
--- usr.sbin/tcpdump/tcpdump/config.h	2001/04/03 07:52:38	1.2
+++ usr.sbin/tcpdump/tcpdump/config.h	2001/04/24 16:33:50
@@ -210,3 +210,9 @@
 /* define if your compiler has __attribute__ */
 #define HAVE___ATTRIBUTE__ 1
 
+#ifdef __alpha__
+#define LBL_ALIGN
+#undef SIZEOF_LONG
+#define SIZEOF_LONG 8
+#endif /*__alpha__*/
+

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15077.44947.898446.277008>