From owner-cvs-all@FreeBSD.ORG Thu Sep 2 11:15:12 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1575B16A4CF; Thu, 2 Sep 2004 11:15:12 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id E401443D31; Thu, 2 Sep 2004 11:15:11 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id D94585C91F; Thu, 2 Sep 2004 04:15:11 -0700 (PDT) Date: Thu, 2 Sep 2004 04:15:11 -0700 From: Alfred Perlstein To: Ruslan Ermilov Message-ID: <20040902111511.GR31434@elvis.mu.org> References: <200409011822.i81IMERb017602@repoman.freebsd.org> <73F8DDC079929FAA3D43CA2E@caspian.scsiguy.com> <20040901204452.GO31434@elvis.mu.org> <20040902064749.GB43702@ip.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040902064749.GB43702@ip.net.ua> User-Agent: Mutt/1.4.2.1i cc: "Justin T. Gibbs" cc: cvs-src@freebsd.org cc: Brooks Davis cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sbin/ifconfig ifconfig.c src/sys/net if.c if.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 11:15:12 -0000 * Ruslan Ermilov [040901 23:47] wrote: > On Wed, Sep 01, 2004 at 01:44:52PM -0700, Alfred Perlstein wrote: > > * Justin T. Gibbs [040901 13:43] wrote: > > > > > > > brooks 2004-09-01 18:22:14 UTC > > > > > > > > FreeBSD src repository > > > > > > > > Modified files: > > > > sbin/ifconfig ifconfig.c > > > > sys/net if.c if.h > > > > Log: > > > > Use a spare byte in struct if_data to store the structure size without > > > > increasing it. Add code to ifconfig to use this size to find the > > > > sockaddr_dl after the struct if_data in the routing message. This > > > > allows struct if_data to grow (up to 255 bytes) without breaking > > > > ifconfig. > > > > > > You could squeeze out 256 bytes if you treat 0 as meaning 256 - just like > > > the SCSI protocol. > > > > Or treat 0 as "look at some other location for length" of int width. :) > > > That wouldn't be backwards compatible, which was the intent. or 255 or some other escape sequence. :) -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684