[Openais] [corosync trunk] solaris totemip port

Chrissie Caulfield ccaulfie at redhat.com
Mon Jun 8 00:43:53 PDT 2009


Steven Dake wrote:
> totemip uses a GNU glibc-ism (s16_addr in the in6_addr struct) which is
> not available on non-GLIBC systems (solaris specifically).
> 
> This patch changes the compare to compare 8 bits at a time instead of
> 16.
> 
> Chrissie, is there a reason the compare was being done 16 bits at a
> time?  If so, we will have to cache two 8 bit values into a 16 bit value
> for each and then do the comparison to be portable.

No, there was no specific reason for the 16 bit copy, it just seemed
marginally more efficient that an 8but one.
-- 

Chrissie


More information about the Openais mailing list