From owner-freebsd-hackers Wed Aug 4 4:19:47 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from assaris.sics.se (assaris.sics.se [193.10.66.108]) by hub.freebsd.org (Postfix) with ESMTP id D251215370; Wed, 4 Aug 1999 04:19:42 -0700 (PDT) (envelope-from assar@sics.se) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.7.3) id NAA65546; Wed, 4 Aug 1999 13:18:28 +0200 (CEST) To: "Brian F. Feldman" Cc: Mike Smith , Matthew Dillon , Ollivier Robert , hackers@FreeBSD.ORG Subject: Re: Jail syscalls References: Mime-Version: 1.0 (generated by tm-edit 7.68) Content-Type: text/plain; charset=US-ASCII From: Assar Westerlund Date: 04 Aug 1999 13:18:24 +0200 In-Reply-To: "Brian F. Feldman"'s message of "Wed, 4 Aug 1999 03:19:57 -0400 (EDT)" Message-ID: <5lr9ljssjj.fsf@assaris.sics.se> Lines: 17 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Brian F. Feldman" 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