Date: Sat, 14 Feb 2009 18:45:51 -0800 From: Sam Leffler <sam@freebsd.org> To: Julian Elischer <julian@elischer.org> Cc: svn-src-head@freebsd.org, Luigi Rizzo <luigi@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r188578 - head/sys/netinet Message-ID: <499781DF.20304@freebsd.org> In-Reply-To: <4997531E.3000900@elischer.org> References: <200902131514.n1DFEhft091837@svn.freebsd.org> <4997531E.3000900@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 >> <netinet/in_systm.h> >> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?499781DF.20304>