From owner-freebsd-hackers Mon Aug 2 18:14: 0 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 073FE14EC8; Mon, 2 Aug 1999 18:13:49 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id TAA89571; Mon, 2 Aug 1999 19:13:36 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id TAA10897; Mon, 2 Aug 1999 19:13:45 -0600 (MDT) Message-Id: <199908030113.TAA10897@harmony.village.org> To: Brian Somers Subject: Re: Mentioning RFC numbers in /etc/services Cc: Bill Fumerola , committers@FreeBSD.ORG, hackers@FreeBSD.ORG In-reply-to: Your message of "Mon, 02 Aug 1999 23:17:01 BST." <199908022217.XAA02577@keep.lan.Awfulhak.org> References: <199908022217.XAA02577@keep.lan.Awfulhak.org> Date: Mon, 02 Aug 1999 19:13:45 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199908022217.XAA02577@keep.lan.Awfulhak.org> Brian Somers writes: : Yes, but do it the other way 'round - strtol first, if it's not all : numeric, getservbyname(). I did it getservbyname first in case there were any legacy services that were all numbers. Traditionally, this is hwo things were done with IP addresses, although a quickie survey shows it to be a mixed bag. The biggest reason for not doing getservbyname first is that it will hang (long timeout) if the databsae behind it goes away. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message