Subject: Re: port-sparc64/18688: tcpdump bus error on sparc64
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: None <itojun@iijlab.net>
List: netbsd-bugs
Date: 10/19/2002 08:09:44
>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)

itojun