[Click] Functions htonq and ntohq in <click/integers.hh>
Eddie Kohler
ekohler at gmail.com
Wed Oct 10 19:45:04 EDT 2012
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 <Markku.Savela at vtt.fi> 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
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list