From owner-freebsd-stable@FreeBSD.ORG Tue Jul 5 07:25:13 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F5A316A41C for ; Tue, 5 Jul 2005 07:25:13 +0000 (GMT) (envelope-from bruce@nikkel.com) Received: from raven.bjn.net (raven.bjn.net [193.73.230.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id C824543D45 for ; Tue, 5 Jul 2005 07:25:12 +0000 (GMT) (envelope-from bruce@nikkel.com) Received: by raven.bjn.net (Postfix, from userid 1000) id 1559C23EEC; Tue, 5 Jul 2005 09:25:11 +0200 (MEST) Date: Tue, 5 Jul 2005 09:25:10 +0200 From: bruce@nikkel.com To: Billy Newsom Message-ID: <20050705072510.GA15446@nikkel.com> Mail-Followup-To: Billy Newsom , FreeBSD Stable References: <42CA2605.60403@leadhill.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42CA2605.60403@leadhill.net> User-Agent: Mutt/1.5.9i Cc: FreeBSD Stable Subject: Re: How do I determine if ipv6 is enabled? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2005 07:25:13 -0000 On Tue, Jul 05, 2005 at 01:17:41AM -0500, Billy Newsom wrote: > Is there a sysctl variable, or a quick method to determine if ipv6 is > enabled in the kernel? e.g. How do I test for the prescence of ipv6 in > a script or at the commandline? You could use ifconfig together with the loopback interface (or any other network interface): ifconfig lo0 inet6 This will return true or false, depending on the ipv6 protocol support. Simple for shell scripting. Bruce Nikkel