Re: ipv6_addr_cmp performance patch

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

 



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.


I suppose it can happen if a user is handcrafting his structures, not letting the compiler align properly, but I would say this is a bug if done.

With the size of the union a nice power of 2 (16 bytes) it is extremely unlikely there is alignment padding holes which might eventually cause different alignment of the different types of the union..

Regards
Henrik
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux