[PATCH] sbin/route should attempt to resolve hostnames for INET6
Hajimu UMEMOTO
ume at freebsd.org
Mon May 23 14:19:17 GMT 2005
Hi,
>>>>> On Sat, 21 May 2005 00:39:51 +0200
>>>>> Andreas Kohn <andreas at syndrom23.de> said:
andreas> attached is a small patch to /sbin/route.c 1.78 so that route's behavior
andreas> matches the description from the manpage:
andreas> All symbolic names specified for a destination or gateway are
andreas> looked up first as a host name using gethostbyname(3). If this
andreas> lookup fails, getnetbyname(3) is then used to interpret the name as
andreas> that of a network.
I've committed it.
andreas> - removes SOCK_DGRAM requirement, which was marked as "dummy".
andreas> getaddrinfo(3) says 0 should be given if one does not care
No, we should care it in usual. Unless this, two entries are
returned; one is for SOCK_DGRAM and the other is for SOCK_STREAM. I
feel that `dummy' means route(8) doesn't use ai_socktype later.
Sincerely,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume at mahoroba.org ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
More information about the freebsd-hackers
mailing list