On Wed, Sep 07, 2005 at 03:15:52AM -0700, Alexey Dobriyan wrote: > On 9/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > On Tue, Sep 06, 2005 at 12:21:05PM +0400, Alexey Dobriyan wrote: > > > * add svc_getnl(): > > > Take network-endian value from buffer, convert to host-endian > > > one and return it. > > > * add svc_putnl(): > > > Take host-endian value, convert to network-endian one and put > > > it into a buffer. > > > * convert to svc_getnl(), svc_putnl(). > > > > ACK, but since we have it inlined anyway I would suggest switching most > > of remaining svc_putu32() to svc_putnl(). Stuff like svc_putu32(xdr_one) > > can become svc_putnl(1) and cc will handle that just fine. > > > > I'm still not too happy about the names, though - almost to the point > > where I'd seriously consider something like > > svc_encode_u32()/svc_decode_u32(). > > Or even reuse svc_{put,get}u32() by plugging htonl() and ntohl() into them. > svc_putu32(xdr_one) => svc_putu32(1)...
IIRC, a couple of svc_putu32() callers had been passing opaque 32bit values that did not come from a host-endian. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html