From owner-freebsd-net@FreeBSD.ORG Thu Mar 27 15:21:43 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8034637B401 for ; Thu, 27 Mar 2003 15:21:43 -0800 (PST) Received: from basie.internet2.edu (basie.internet2.edu [207.75.164.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA2F643FE9 for ; Thu, 27 Mar 2003 15:21:42 -0800 (PST) (envelope-from boote@internet2.edu) Received: from localhost (localhost.localdomain [127.0.0.1]) by basie.internet2.edu (Postfix) with ESMTP id 670857B488; Thu, 27 Mar 2003 18:21:42 -0500 (EST) Received: from internet2.edu (localhost [127.0.0.1]) by basie.internet2.edu (Postfix) with ESMTP id 243A17B47D; Thu, 27 Mar 2003 18:21:41 -0500 (EST) Message-ID: <3E838784.F2F4E330@internet2.edu> Date: Thu, 27 Mar 2003 16:21:40 -0700 From: "Jeff W. Boote" X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <20030326134823.A7029@jamaica.grc.nasa.gov> <20030327104649.B18679@jamaica.grc.nasa.gov> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS 0.3.12pre8 X-Spam-Status: No, hits=-6.6 required=5.0 tests=REFERENCES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: FreeBSD 5.0 dual-stack server X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2003 23:21:44 -0000 Hi, I have some server code that I've been developing using FreeBSD 4.6 and 4.7. I want this code to run with both IPv4 and IPv6. I have been using getaddrinfo with AF_UNSPEC to bind a wildcard server socket. (This is the method recommended in Stevens UNP.) In any case - my server code works fine on 4.6 and 4.7 binding to both address families. However, I have just received a report of it only binding the v6 address on a FreeBSD 5.0 system. (As reported from "netstat -a -p tcp" - and by the fact that clients that try and use the v4 address are unable to get a connection.) It is behaving as if the IPV6_BINDV6ONLY sockopt is set... Has the "default" value for this changed? Is it recommended that any server that wants to bind to the dual-stack needs to make sure this sockopt is unset? I am not doing that... I just found the net.inet6.ip6.bindv6only sysctl variable doing a web search... What is the default value for this sysctl on 5.0? (I guess I may need to install 5.0 on a box, and stop bothering others...) Thanks, jeff