From owner-freebsd-stable@FreeBSD.ORG Tue Jul 5 06:35:08 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 61C2216A41C for ; Tue, 5 Jul 2005 06:35:08 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id B808643D58 for ; Tue, 5 Jul 2005 06:35:07 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie ([134.226.81.10] helo=walton.maths.tcd.ie) by salmon.maths.tcd.ie with SMTP id ; 5 Jul 2005 07:35:06 +0100 (BST) Date: Tue, 5 Jul 2005 07:35:05 +0100 From: David Malone To: Billy Newsom Message-ID: <20050705063505.GB50936@walton.maths.tcd.ie> 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.6i Sender: dwmalone@maths.tcd.ie 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 06:35:08 -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 check for the existance of the net.inet6 sysctl tree. If IPv6 is present then "sysctl net.inet6" will return true, otherwise it will return an error. (Note, that this doesn't mean that IPv6 has been configured, just that the kernel supports it.) David.