Re: Functions htonq and ntohq in <click/integers.hh>

Eddie Kohler <[email protected]> Wed, 10 Oct 2012 19:45:04 -0400
Newsgroups gmane.network.routing.click
Message-ID <CAF0C5SJk-kLbWjfxC16hCD9zojJUGpbe22rLkgHPbgu7k50jLQ@mail.gmail.com>
Nope, the current version is correct, as you can see by actually running it.

Eddie


On Wed, Oct 10, 2012 at 8:06 AM, Markku Savela <[email protected]> wrote:
> hi,
>
> integers.hh defines functions ntohq/htonq, but to me they
> look identical? To me it looks like, in ntohq, the return
>
>      return (((uint64_t)ntohl(lo)) << 32) | ntohl(hi);
>
> should be replaced by
>
>      return (((uint64_t)ntohl(hi)) << 32) | ntohl(lo);
>
> ???
> _______________________________________________
> click mailing list
> [email protected]
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click