From owner-freebsd-net Sun Mar 25 23:49:14 2001 Delivered-To: freebsd-net@freebsd.org Received: from measurement-factory.com (measurement-factory.com [206.168.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 5C9FA37B718 for ; Sun, 25 Mar 2001 23:49:11 -0800 (PST) (envelope-from rousskov@measurement-factory.com) Received: (from rousskov@localhost) by measurement-factory.com (8.9.3/8.9.3) id AAA90137; Mon, 26 Mar 2001 00:49:06 -0700 (MST) (envelope-from rousskov) Date: Mon, 26 Mar 2001 00:49:06 -0700 (MST) From: Alex Rousskov To: Jun-ichiro itojun Hagino Cc: net@FreeBSD.ORG Subject: Re: proper way to test for INET/INET6? In-Reply-To: <20010326045902.481FA7E73@starfruit.itojun.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 26 Mar 2001, Jun-ichiro itojun Hagino wrote: > what are you planning to do after checking IPv6 support in the kernel? > applications should be written so that it would work on both > IPv4-only, IPv6-only and IPv4/v6 dual stack kernels, by using > getaddrinfo(3) and getnameinfo(3). you do not need to check if you > write applications properly. Yes, in the ideal world that might be true. In the real world, one has to rely on ./configure and other awful hacks to just declare a couple of innocent-looking address-related variables (and to compile on more than one platform). Alex. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message