[Click] Functions htonq and ntohq in <click/integers.hh>
Markku Savela
Markku.Savela at vtt.fi
Thu Oct 11 04:02:06 EDT 2012
On 10/11/2012 10:08 AM, Markku Savela wrote:
> Apparently MIPS in big endian mode and calling htonq is not
> correct. I was using htonq in same sense as "htonl", which
> always works, whether host is big or little endian.
If anyone is insterested, following diff is my attempt to make
htonq/ntohq safe to call regardless of the host endianness?
(works for my MIPS -> x86 case, but of course, these things
are tricky, so some one needs to check this, or think a
better implementation).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: htonq.diff
Type: text/x-patch
Size: 1068 bytes
Desc: not available
Url : http://amsterdam.lcs.mit.edu/pipermail/click/attachments/20121011/c84bed11/attachment.bin
More information about the click
mailing list