Looks like Solaris is not happy about unaligned accesses. Try this
patch; that got tcpslice working for me on Solaris 8.
Bill
Index: search.c
===================================================================
RCS file: /tcpdump/master/tcpslice/search.c,v
retrieving revision 1.19
diff -u -r1.19 search.c
--- search.c 2001/10/30 17:59:47 1.19
+++ search.c 2001/11/14 23:15:37
@@ -132,12 +132,14 @@
static void
extract_header( pcap_t *p, u_char *buf, struct pcap_pkthdr *hdr )
{
- struct pcap_sf_pkthdr *sfhdr = (struct pcap_sf_pkthdr *)buf;
+ struct pcap_sf_pkthdr sfhdr;
- hdr->ts.tv_sec = sfhdr->ts.tv_sec;
- hdr->ts.tv_usec = sfhdr->ts.tv_usec;
- hdr->caplen = sfhdr->caplen;
- hdr->len = sfhdr->len;
+ memcpy(&sfhdr, buf, sizeof(sfhdr));
+
+ hdr->ts.tv_sec = sfhdr.ts.tv_sec;
+ hdr->ts.tv_usec = sfhdr.ts.tv_usec;
+ hdr->caplen = sfhdr.caplen;
+ hdr->len = sfhdr.len;
if ( pcap_is_swapped( p ) )
{
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe