[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 03108) Re: ipv6_addr_cmp performance patch



On Wed, 10 Nov 2004 00:30:03 +0100 (CET)
Henrik Nordstrom <hno@xxxxxxxxxxxxxxx> wrote:

> On Wed, 10 Nov 2004, Herbert Xu wrote:
> 
> > What if the addresses are not aligned on a platform where it matters?
> 
> Can this at all happen with the sockaddr_in6/in6_addr alignment 
> requirements? It is already a union of uint32_t.

It can if it is embedded within a structure using attribute
"packed".