Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jul 2005 07:35:05 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Billy Newsom <smartweb@leadhill.net>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: How do I determine if ipv6 is enabled?
Message-ID:  <20050705063505.GB50936@walton.maths.tcd.ie>
In-Reply-To: <42CA2605.60403@leadhill.net>
References:  <42CA2605.60403@leadhill.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050705063505.GB50936>