Subject: Re: alignment crash in v6 ipfilter when receiving on gif
To: None <port-sparc64@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: port-sparc64
Date: 07/12/2007 11:23:35
>> Declare ip6_src and/or ip6->ip6_src as __attribute__((__packed__))
>> and gcc should stop assuming that they have the alignment their type
>> would normally call for, at least as I read extend.texi.
> struct ip6_hdr is in fact declared with __attribute__((__packed__)).
> Shouldn't it indicate that its members can be misaligned, too?

I don't think so.  Packed applied to a struct is different from packed
applied to a variable or a member of a struct, as I read extend.texi.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B