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

Unaligned references in /usr/src/sys/netinet6/in6.h



Hello,

within testing on a ia64-platform I spotted unaligned references in the 
macros:
IN6_IS_ADDR_UNSPECIFIED(a), IN6_IS_ADDR_LOOPBACK(a), 
IN6_IS_ADDR_V4COMPAT(a) and IN6_IS_ADDR_V4MAPPED(a)

It's not always true that the s6_addr array is aligned to 4-byte and this 
causes some trouble at least with ia64-platforms.

After changing from u_int32_t to u_int8_t accesses the unalignment faults seem 
to be gone.

Regards,
Marc

P.S.: On replies please CC me because I'm not on the list.
_______________________________________________
freebsd-net_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe_(_at_)_freebsd_(_dot_)_org"