ntohq/htonq?

Marcel Moolenaar marcel at xcllnt.net
Wed Sep 14 03:16:33 UTC 2011


All,

Is there a reason not to add ntohq and htonq to the short
and long versions we (and everyone else) already has?

Juniper has 64-bit entities that go over the wire in
network byte order and, while these macros are absolutely
arcane, I see no reason not to complete them with 64-bit
variants.

I did some googling and htonq and ntohq seem to be de
facto names used, but oddly enough no OS has them defined.
It's surreal. Are there better alternatives we should
migrate to?

-- 
Marcel Moolenaar
marcel at xcllnt.net




More information about the freebsd-arch mailing list