Subject: Re: ancillary data alignment and binary backward compatibility
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
From: Chris G. Demetriou <cgd@netbsd.org>
List: tech-net
Date: 04/02/2000 21:55:49
Jun-ichiro itojun Hagino <itojun@iijlab.net> writes:
> > > - when userland process consumes ancillary data (via recvmsg)
> >When the process does the rcvmsg() is when you can re-pack, if necessary.
>
> Chris basically suggested to avoid re-packing, and I agree re-packing
> is not a good thing. I'm very very stuck here...
OK, i thought that you had an intermediate representation, rather than
packing into the right format directly in the networking protocol
stack code.
Indeed, in that case, you can't avoid repacking.
cgd
--
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.