Subject: Re: MKINET6 vs. USE_INET6
To: Hubert Feyrer <>
From: James Chacon <>
List: tech-x11
Date: 12/20/2005 09:39:43
On Tue, Dec 20, 2005 at 04:25:12PM +0100, Hubert Feyrer wrote:
> On Tue, 20 Dec 2005, Valeriy E. Ushakov wrote:
> >>What's the way to enable/disable IPv6 in NetBSD?
> >>According to src/share/mk/ it's MKINET6=no, but
> >>.../ checks for USE_INET6!=no.
> >>
> >>Maybe that should be changed? (s/USE_INET6/MKINET6/)
> >
> >They are different, read the share/mk/bsd.README
> USE_INET6 is not in there. It probably should...
> Then, from my understanding of what happens, I'd say that disabling 
> listening on IPv6 is to disable some functionality, which would be what 
> MKINET6 does.
> I don't get it.

This isn't hard....

From the top of the vars section:

The basic rule for the variable naming scheme is as follows:

MKxxx           Can be set to "no" to disable functionality, or
                "yes" to enable it.
                Usually defaults to "yes", although some variables
                default to "no".


MKINET6         If "no", disables building of INET6 (IPv6) infrastructure
                (libraries and support programs).
                Default: yes


USE_INET6       If "no", disables building INET6 (IPv6) support into
                various system utilities/libraries that support it.
                If ${MKINET6} is "no", USE_INET6 will also be
                forced to "no".


One disables entire programs (ala ping6) and the other eliminates possible
internal support. To completely disable it, set both.