From owner-svn-src-head@FreeBSD.ORG Sun Feb 15 04:12:27 2009 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6600106564A; Sun, 15 Feb 2009 04:12:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 72CB38FC13; Sun, 15 Feb 2009 04:12:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n1F49xhD060940; Sat, 14 Feb 2009 21:09:59 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 14 Feb 2009 21:10:01 -0700 (MST) Message-Id: <20090214.211001.-1962670480.imp@bsdimp.com> To: sam@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <499781DF.20304@freebsd.org> References: <200902131514.n1DFEhft091837@svn.freebsd.org> <4997531E.3000900@elischer.org> <499781DF.20304@freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, luigi@FreeBSD.org, src-committers@FreeBSD.org, julian@elischer.org, svn-src-all@FreeBSD.org Subject: Re: svn commit: r188578 - head/sys/netinet X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2009 04:12:28 -0000 In message: <499781DF.20304@freebsd.org> Sam Leffler writes: : Julian Elischer wrote: : > Luigi Rizzo wrote: : >> Author: luigi : >> Date: Fri Feb 13 15:14:43 2009 : >> New Revision: 188578 : >> URL: http://svn.freebsd.org/changeset/base/188578 : >> : >> Log: : >> Use uint32_t instead of n_long and n_time, and uint16_t instead of : >> n_short. : >> Add a note next to fields in network format. : >> The n_* types are not enough for compiler checks on endianness, : >> and their : >> use often requires an otherwise unnecessary #include : >> : >> The typedef in in_systm.h are still there. : > : > There is a project out there (intel was involved frommemory) to make a : > compiler that knows the endianness of stuff. I know it exists because : > it was reported that one well known piece of big endian embedded : > software was compiled successfully to actually run on little endian : > machines. You can of course see why intel was interested.. : : linux has endian annotations for sparse. I've thought it would be : worthwhile to mod freebsd but it's ugly and w/o (native) tools to use : seemed pointless. I've been playing with sparse seeing if it would be useful to FreeBSD, and how intrusive the annotations would need to be to make it useful. It is still early days, though... Warner