[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-alpha
Subject: tcpdump / libpcap
From: Andrew Gallatin <gallatin () cs ! duke ! edu>
Date: 2001-04-24 16:53:39
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic