From owner-cvs-all@FreeBSD.ORG Wed Sep 1 20:43:51 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 6E71516A4CE; Wed, 1 Sep 2004 20:43:51 +0000 (GMT) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id D77C243D48; Wed, 1 Sep 2004 20:43:50 +0000 (GMT) (envelope-from gibbs@scsiguy.com) Received: from caspian.scsiguy.com (caspian.scsiguy.com [63.229.232.105]) by aslan.scsiguy.com (8.12.11/8.12.11) with ESMTP id i81Khj8U081407; Wed, 1 Sep 2004 14:43:46 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Date: Wed, 01 Sep 2004 14:44:45 -0600 From: "Justin T. Gibbs" To: Brooks Davis , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Message-ID: <73F8DDC079929FAA3D43CA2E@caspian.scsiguy.com> In-Reply-To: <200409011822.i81IMERb017602@repoman.freebsd.org> References: <200409011822.i81IMERb017602@repoman.freebsd.org> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline 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: Wed, 01 Sep 2004 20:43:51 -0000 > 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. -- Justin