Subject: Re: port-sparc64/18688: tcpdump bus error on sparc64
To: None <itojun@iijlab.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 10/20/2002 17:39:06
On Sat, Oct 19, 2002 at 08:09:44AM +0900, itojun@iijlab.net wrote:
> >On Fri, Oct 18, 2002 at 02:45:36AM +0000, john heasley wrote:
> >> the value of tptr will be only byte aligned.
> >> >Fix:
> >> define LBL_ALIGN for sparc64.
> >
> >Not only sparc64. All platforms with strict alignement requirements will
> >loose here.
> >I noticed the problem on sparc, and added LBL_ALIGN to the options (it
> >shouldn't hurt even on platforms which don't need it) but it has been backed
> >out :(
> 
> 	LBL_ALIGN does two things:
> 	- change definition in extract.h to use byte-by-byte fetch rather than
> 	  ntohs()
> 	- copy packet before examination in print-{atalk,ip,ip6}.c
> 	the latter one has serious bad effect.  i've attached a diff onto
> 	PR 18688 to only enable the former (tcpdump.org tree is also modified).
> 	if you could test with patch on PR 18688, that would be really helpful.
> 	(i will commit the same thing now)

works for me.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--