"Brian F. Feldman" <[EMAIL PROTECTED]> writes:
> On Tue, 3 Aug 1999, Mike Smith wrote:
> >
> > Actually, with interfaces like this you should generally pass a pointer
> > to the structure in userspace, and stick a version number constant in
> > the beginning of the structure. The size is often not enough of a
> > determining factor...
>
> Actually, the structure shouldn't change size because it should be
> using a sockaddr.
No, because sizeof(struct sockaddr) < sizeof(struct sockaddr_in6).
This is kind of bad but that's the way it is. It would make sense to
use a `struct sockaddr_storage' but I still think it's worthwhile and
better to have a version number.
/assar
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message