From owner-cvs-all@FreeBSD.ORG Thu Sep 2 06:47:56 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 4C33C16A4CE; Thu, 2 Sep 2004 06:47:56 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42E2E43D2D; Thu, 2 Sep 2004 06:47:55 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i826lntt050963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Sep 2004 09:47:50 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i826lnDs043774; Thu, 2 Sep 2004 09:47:49 +0300 (EEST) (envelope-from ru) Date: Thu, 2 Sep 2004 09:47:49 +0300 From: Ruslan Ermilov To: Alfred Perlstein Message-ID: <20040902064749.GB43702@ip.net.ua> References: <200409011822.i81IMERb017602@repoman.freebsd.org> <73F8DDC079929FAA3D43CA2E@caspian.scsiguy.com> <20040901204452.GO31434@elvis.mu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aVD9QWMuhilNxW9f" Content-Disposition: inline In-Reply-To: <20040901204452.GO31434@elvis.mu.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new 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 06:47:56 -0000 --aVD9QWMuhilNxW9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 01, 2004 at 01:44:52PM -0700, Alfred Perlstein wrote: > * Justin T. Gibbs [040901 13:43] wrote: > >=20 > > > brooks 2004-09-01 18:22:14 UTC > > >=20 > > > FreeBSD src repository > > >=20 > > > Modified files: > > > sbin/ifconfig ifconfig.c=20 > > > sys/net if.c if.h=20 > > > Log: > > > Use a spare byte in struct if_data to store the structure size with= out > > > 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. > >=20 > > You could squeeze out 256 bytes if you treat 0 as meaning 256 - just li= ke > > the SCSI protocol. >=20 > Or treat 0 as "look at some other location for length" of int width. :) >=20 That wouldn't be backwards compatible, which was the intent. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --aVD9QWMuhilNxW9f Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBNsIVqRfpzJluFF4RAjFfAJ9iPqZ1r2M+8lheJZP1LhuMAu/iMwCeP6OH HNScStxiAoMWPVNXe7GxIE8= =uvh/ -----END PGP SIGNATURE----- --aVD9QWMuhilNxW9f--