From owner-freebsd-net@FreeBSD.ORG Tue Jun 22 22:54:25 2010 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83AD8106564A for ; Tue, 22 Jun 2010 22:54:25 +0000 (UTC) (envelope-from julian@elischer.org) Received: from out-0.mx.aerioconnect.net (out-0-1.mx.aerioconnect.net [216.240.47.61]) by mx1.freebsd.org (Postfix) with ESMTP id 64AC38FC12 for ; Tue, 22 Jun 2010 22:54:25 +0000 (UTC) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id o5MMsNGl023087; Tue, 22 Jun 2010 15:54:23 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 11BEE2D6017; Tue, 22 Jun 2010 15:54:22 -0700 (PDT) Message-ID: <4C213F36.4030206@elischer.org> Date: Tue, 22 Jun 2010 15:54:46 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Luigi Rizzo References: <20100622221228.GA93249@onelab2.iet.unipi.it> In-Reply-To: <20100622221228.GA93249@onelab2.iet.unipi.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 Cc: Randall Stewart , net@freebsd.org Subject: Re: Observations from an old timer playing with 64 bit numbers... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jun 2010 22:54:25 -0000 On 6/22/10 3:12 PM, Luigi Rizzo wrote: > On Tue, Jun 22, 2010 at 05:46:02PM -0400, Randall Stewart wrote: >> Hi all: >> >> I have had some fun in my day job playing with exchanging 64bit >> numbers. Unfortunately >> there is no ntohll() OR htonll() which would be the logical thing (for >> us old farts) to use. >> >> Yes, I have found htobe64() and friends.. and that would work.. but I >> still cannot >> help but feeling we should have the ntohll() and htonll().. for >> consistency if nothing >> else. >> >> Any objections to this showing up in a head near you soon (speak soon >> or I will commit >> the patches to add these ;-D) > > strong objection! > We should instead use names with exact sizes (16,32,64). > In case you want to use Roman Numbers, 64 would be LXIV :) Don't know about roman numerals but I'm for using numbers. hton64 and ntoh64 would be a lot more useful > > cheers > luigi > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"