[Click] Functions htonq and ntohq in <click/integers.hh>

Eddie Kohler ekohler at gmail.com
Thu Oct 11 11:43:29 EDT 2012


Ouch! Does the diff I just checked in work for you?

E


On Thu, Oct 11, 2012 at 4:02 AM, Markku Savela <Markku.Savela at vtt.fi> wrote:
> 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).
>
>
>


More information about the click mailing list