From owner-freebsd-questions@FreeBSD.ORG Mon Mar 8 23:39:21 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F19D616A4CE for ; Mon, 8 Mar 2004 23:39:21 -0800 (PST) Received: from isengard.yottayotta.com (isengard.yottayotta.com [198.161.246.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAFA043D2F for ; Mon, 8 Mar 2004 23:39:21 -0800 (PST) (envelope-from rdh@yottayotta.com) Received: from fw-edm-dmz.yottayotta.com ([192.168.1.2] helo=edm-app01.yottayotta.com) by isengard.yottayotta.com with esmtp (Exim 3.33 #1) id 1B0bq4-0003TT-00 for freebsd-questions@freebsd.org; Tue, 09 Mar 2004 00:39:44 -0700 Received: from tethys.edmonton.yottayotta.com ([10.0.1.8]) by edm-app01.yottayotta.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id GPJA6QZH; Tue, 9 Mar 2004 00:38:49 -0700 Received: from dernhelm.edmonton.yottayotta.com ([10.0.1.76]) by tethys.edmonton.yottayotta.com with esmtp (Exim 3.22 #2) id 1B0bpA-0006fq-00; Tue, 09 Mar 2004 00:38:48 -0700 Received: from dernhelm.edmonton.yottayotta.com (desktopinstall [127.0.0.1]) i297cmiG021260; Tue, 9 Mar 2004 00:38:48 -0700 Received: (from rdh@localhost)i297cm1o021258; Tue, 9 Mar 2004 00:38:48 -0700 X-Authentication-Warning: dernhelm.edmonton.yottayotta.com: rdh set sender to rdh@yottayotta.com using -f To: freebsd-questions@freebsd.org References: <86smgizfyz.fsf@ponoka.ed.shawcable.net> From: Dale Hagglund Date: Tue, 09 Mar 2004 00:38:48 -0700 In-Reply-To: <86smgizfyz.fsf@ponoka.ed.shawcable.net> (Dale Hagglund's message of "Mon, 08 Mar 2004 23:34:12 -0700") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: change in semantics of socket(PF_INET, SOCK_STREAM, 0)? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 07:39:22 -0000 Dale Hagglund writes: > I upgraded from 4.8 to 4.9 and my install of net/vnc couldn't connect > to a remote server any more. The connection is via an ssh tunnel, but > I don't think that's relevant. Famous last words. ssh binds its tunnel port explicitly to 127.0.0.1. vncviewer, when given an empty host name, uses an ipaddress of 0.0.0.0 which doesn't match this. Running vncviewer as $ vncviewer localhost:1 instead of $ vncviewer :1 works fine. This could be considered a bug in vncviewer, although I'm not really sure of that. The only (very minor) remining issue is that the ip(4) man page seems to be incorrect: _proto_ of zero does not give a raw socket. I downloaded vncviewer source, and then changed the socket calls to explicitly use IPPROTO_TCP, and the behaviour was the same. Sorry for the confusion. Dale.