From owner-freebsd-alpha Tue Apr 24 9:54:14 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id D5A2C37B423 for ; Tue, 24 Apr 2001 09:54:10 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id MAA28474 for ; Tue, 24 Apr 2001 12:54:10 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.3/8.9.1) id f3OGrdP16898; Tue, 24 Apr 2001 12:53:39 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15077.44947.898446.277008@grasshopper.cs.duke.edu> Date: Tue, 24 Apr 2001 12:53:39 -0400 (EDT) To: freebsd-alpha@freebsd.org Subject: tcpdump / libpcap X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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