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

Markku Savela Markku.Savela at vtt.fi
Wed Oct 10 08:06:35 EDT 2012


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);

???


More information about the click mailing list