[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: [PATCH] sbin/route should attempt to resolve hostnames for INET6
From: Hajimu UMEMOTO <ume () freebsd ! org>
Date: 2005-05-23 14:18:53
Message-ID: ygeekbyauuq.wl%ume () mahoroba ! org
[Download RAW message or body]
Hi,
>>>>> On Sat, 21 May 2005 00:39:51 +0200
>>>>> Andreas Kohn <andreas@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@mahoroba.org ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic