From owner-freebsd-net@FreeBSD.ORG Tue Jun 22 22:01:27 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B90F1065672 for ; Tue, 22 Jun 2010 22:01:27 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by mx1.freebsd.org (Postfix) with ESMTP id 22E068FC15 for ; Tue, 22 Jun 2010 22:01:26 +0000 (UTC) Received: from f8x64.laiers.local (dslb-088-064-188-037.pools.arcor-ip.net [88.64.188.37]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MWhTP-1OgsrN0Kk7-00XwVn; Wed, 23 Jun 2010 00:01:18 +0200 From: Max Laier Organization: FreeBSD To: freebsd-net@freebsd.org Date: Wed, 23 Jun 2010 00:01:17 +0200 User-Agent: KMail/1.13.3 (FreeBSD/8.0-RELEASE-p3; KDE/4.4.3; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201006230001.17407.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+2tI9mjZrPqCkDtn+75oYnXGCNnHIP2Kh1zuQ WB0nD1jlKwG6O/S4jAorMyuPbSm4lz9ncZwi5WpPIObKyFJ7Nf GrZSmFuLHykWXnRccMpyA== Cc: Randall Stewart 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:01:27 -0000 On Tuesday 22 June 2010 23:46:02 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) Is there any precedence in other *BSDs or elsewhere? There is already enough difference in endian.h between the BSDs (OpenBSD has betohXX instead of beXXtoh) and it makes porting code difficult. I'd prefer to not add gratuitous aliases for things that already have a well-known name. Thanks, Max