Subject: Re: hton64
To: Matt Thomas <matt@3am-software.com>
From: Perry E. Metzger <perry@piermont.com>
List: current-users
Date: 06/28/1997 13:09:34
Matt Thomas writes:
> At 12:18 AM 6/28/97 -0700, Chris G. Demetriou wrote:
> >> But I'd vote for us adding them. I think they will be useful (isn't IPv6
> >> going to some huge address size?), and we could help set a standard.
> >> 
> >> I'd actually vote that we move towards numbering, as ntohl & ntohs
> >> implicitly assume that a long is 32 bits and a short is 16. Shouldn't
> >> htonl really convert whatever a "long" is from NBO to HBO, even if a long
> >> is 64 bits?
> >
> >better yet: create generic byte-in-Nbyteinteger swap functions.  Then
> >define ntoh* and hton* to use them, if appropriate for the port.
> 
> Hear.  Hear.  Think of MD5 needing to byte swap on big-endian platforms.

Well, who is going to volunteer to spec the things and write them?

Perry