Endianness and comparing IP's

alex avriette alex at macachu.yi.org
Tue Jan 9 00:20:23 EST 2001


Thank you all. The problem has been solved. solution (as per Iain and
Geert):

#define BSWAP32(c)
((((c)>>24)&0xff)|(((c)>>8)&0xff00)|(((c)<<8)&0xff0000)|((c)<<24))


thanks again.
alex


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list