From owner-freebsd-hackers Wed Aug 4 10: 2:33 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 13BFA150A7 for ; Wed, 4 Aug 1999 10:02:30 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.3/8.8.7) with ESMTP id NAA55848; Wed, 4 Aug 1999 13:01:56 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Wed, 4 Aug 1999 13:01:55 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Doug Rabson Cc: Mike Smith , Matthew Dillon , Ollivier Robert , hackers@FreeBSD.org Subject: Re: Jail syscalls In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 4 Aug 1999, Doug Rabson wrote: > The argument for versioning is not simply because the size of ip_number > might change (it should be a sockaddr) but because other fields might be > added or removed. To avoid allocating a new syscall whenever this happens, > the structure should be versioned. Ahh, okay. If we plan on changing it, I agree. > > Putting sizeof(whatever) at the beginning of the structure works > surprisingly well as a versioning system. Or a version field at a set offset, like in struct ip :) > > -- > Doug Rabson Mail: dfr@nlsystems.com > Nonlinear Systems Ltd. Phone: +44 181 442 9037 > > > Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message