From owner-svn-src-head@FreeBSD.ORG Sun Feb 15 02:45:54 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 6EDE9106564A; Sun, 15 Feb 2009 02:45:54 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 0AC3D8FC12; Sun, 15 Feb 2009 02:45:53 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n1F2jqL6060126 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 14 Feb 2009 18:45:52 -0800 (PST) (envelope-from sam@freebsd.org) Message-ID: <499781DF.20304@freebsd.org> Date: Sat, 14 Feb 2009 18:45:51 -0800 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: Julian Elischer References: <200902131514.n1DFEhft091837@svn.freebsd.org> <4997531E.3000900@elischer.org> In-Reply-To: <4997531E.3000900@elischer.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-DCC-Rhyolite-Metrics: ebb.errno.com; whitelist Cc: svn-src-head@freebsd.org, Luigi Rizzo , src-committers@freebsd.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 02:45:54 -0000 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. Sam