Date: 04 Aug 1999 13:18:24 +0200 From: Assar Westerlund <assar@sics.se> To: "Brian F. Feldman" <green@FreeBSD.ORG> Cc: Mike Smith <mike@smith.net.au>, Matthew Dillon <dillon@apollo.backplane.com>, Ollivier Robert <roberto@keltia.freenix.fr>, hackers@FreeBSD.ORG Subject: Re: Jail syscalls Message-ID: <5lr9ljssjj.fsf@assaris.sics.se> In-Reply-To: "Brian F. Feldman"'s message of "Wed, 4 Aug 1999 03:19:57 -0400 (EDT)" References: <Pine.BSF.4.10.9908040319040.47190-100000@janus.syracuse.net>
next in thread | previous in thread | raw e-mail | index | archive | help
"Brian F. Feldman" <green@FreeBSD.ORG> 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5lr9ljssjj.fsf>