Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Aug 1999 19:13:45 -0600
From:      Warner Losh <imp@village.org>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        Bill Fumerola <billf@jade.chc-chimes.com>, committers@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: Mentioning RFC numbers in /etc/services 
Message-ID:  <199908030113.TAA10897@harmony.village.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>  

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908030113.TAA10897>