From owner-cvs-all@FreeBSD.ORG Sun Dec 12 21:55:43 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 6B2B316A4CE; Sun, 12 Dec 2004 21:55:43 +0000 (GMT) Received: from electra.cse.Buffalo.EDU (electra.cse.Buffalo.EDU [128.205.32.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C6DE43D58; Sun, 12 Dec 2004 21:55:43 +0000 (GMT) (envelope-from kensmith@cse.Buffalo.EDU) Received: from electra.cse.Buffalo.EDU (kensmith@localhost [127.0.0.1]) iBCLteIo007595; Sun, 12 Dec 2004 16:55:40 -0500 (EST) Received: (from kensmith@localhost) by electra.cse.Buffalo.EDU (8.12.10/8.12.9/Submit) id iBCLtei8007594; Sun, 12 Dec 2004 16:55:40 -0500 (EST) Date: Sun, 12 Dec 2004 16:55:40 -0500 From: Ken Smith To: Wilko Bulte Message-ID: <20041212215540.GD5960@electra.cse.Buffalo.EDU> References: <200412122012.iBCKCou6068020@repoman.freebsd.org> <20041212204111.GB5503@electra.cse.Buffalo.EDU> <20041212205321.GA28802@odin.ac.hmc.edu> <20041212212850.GA1493@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041212212850.GA1493@freebie.xs4all.nl> User-Agent: Mutt/1.4.1i cc: Brooks Davis cc: Brooks Davis cc: cvs-src@FreeBSD.ORG cc: cvs-all@FreeBSD.ORG cc: src-committers@FreeBSD.ORG cc: Ken Smith 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: Sun, 12 Dec 2004 21:55:43 -0000 On Sun, Dec 12, 2004 at 10:28:50PM +0100, Wilko Bulte wrote: > On Sun, Dec 12, 2004 at 12:53:21PM -0800, Brooks Davis wrote.. > > ifi_mtu, etc remain in the same location because the two new variables > > fill in the hidden padding required to align ifi_mtu. I've verified > > that old and new ifconfigs work with old and new kernels. The change > > Als on 64 bit machines? Just wondering.. I didn't check as thoroughly as Brooks said he did but I whipped up a very crude little test and ran it on beast: #include #include #include "if.h" main() { struct if_data foo; u_char *addr1, *addr2; printf("sizeof if_data %d\n", sizeof(foo)); addr1 = (u_char *)&foo; addr2 = (u_char *)&foo.ifi_mtu; printf("offset ifi_mtu %d\n", (int)(addr2 - addr1)); } It reported no change in the structure size and said the ifi_mtu field began at the same spot using the old and new versions of if.h. So, that *should* indicate Alpha's compiler had been doing the same invisible padding that i386's had been. Brooks, sorry about all this. Just last-second jitters... :-) -- Ken Smith - From there to here, from here to | kensmith@cse.buffalo.edu there, funny things are everywhere. | - Theodore Geisel |