From owner-cvs-all@FreeBSD.ORG Thu Feb 2 19:29:30 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB0AF16A420; Thu, 2 Feb 2006 19:29:30 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B4DF43D53; Thu, 2 Feb 2006 19:29:30 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k12JTUCr010471; Thu, 2 Feb 2006 19:29:30 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k12JTUiB010470; Thu, 2 Feb 2006 19:29:30 GMT (envelope-from mux) Message-Id: <200602021929.k12JTUiB010470@repoman.freebsd.org> From: Maxime Henrion Date: Thu, 2 Feb 2006 19:29:30 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup proto.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2006 19:29:30 -0000 mux 2006-02-02 19:29:30 UTC FreeBSD projects repository Modified files: csup proto.c Log: Revert most of my previous changes, I'm actually going to handle this another way. When looping through all the available addresses returned by getaddrinfo(), if either the socket() or the connect() call fails, print a "Cannot connect to" message, but print the address and not the host, with inet_ntop(). On ref4.FreeBSD.org which doesn't support IPv6 and using cvsup5.FreeBSD.org which expands to both an IPv4 and an IPv6 address this gives: Connecting to cvsup5.FreeBSD.org Cannot connect to 1c1c:176f::2001:468:902:201: Protocol not supported Connected to cvsup5.FreeBSD.org [...] Now the only problem is that it would seem more logical to also print the address in the "Connected to" line, so that we have: Connecting to cvsup5.FreeBSD.org Cannot connect to 1c1c:176f::2001:468:902:201: Protocol not supported Connected to 128.205.32.21 But I'm reluctant to do this since that changes the makes us differ significantly from CVSup's output. Revision Changes Path 1.58 +28 -24 projects/csup/proto.c