Date: Mon, 23 May 2005 23:18:53 +0900 From: Hajimu UMEMOTO <ume@freebsd.org> To: Andreas Kohn <andreas@syndrom23.de> Cc: hackers@freebsd.org Subject: Re: [PATCH] sbin/route should attempt to resolve hostnames for INET6 Message-ID: <ygeekbyauuq.wl%ume@mahoroba.org> In-Reply-To: <1116628791.1219.16.camel@klamath.syndrom23.de> References: <1116628791.1219.16.camel@klamath.syndrom23.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygeekbyauuq.wl%ume>