Functions htonq and ntohq in <click/integers.hh>
Markku Savela <[email protected]> Wed, 10 Oct 2012 15:06:35 +0300
| Newsgroups | gmane.network.routing.click |
|---|---|
| Message-ID | <[email protected]> |
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);
???