Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jul 2000 20:50:01 -0700
From:      Peter Wemm <peter@netplex.com.au>
To:        Darren Reed <avalon@coombs.anu.edu.au>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: options INET6 vs opt_inet.h 
Message-ID:  <200007160350.UAA20408@netplex.com.au>
In-Reply-To: Message from Darren Reed <avalon@coombs.anu.edu.au>  of "Sun, 16 Jul 2000 11:42:12 %2B1000." <200007160142.LAA17043@cairo.anu.edu.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
Darren Reed wrote:
> 
> So, it would appear that in /sys/conf/options, we have the following:
> 
> INET                    opt_inet.h
> INET6                   opt_inet6.h
> 
> Which might seem all nice and dandy - except that config will not generate
> "opt_inet6.h" with "#undef INET6" if "option INET6" is not present and so
> you cannot inlcude "opt_inet6.h" to determine if INET6 is defined.  There
> are two possible fixes here - which are not necessarily mutually exclusive
> of each other:
> 
> 1. make config generate opt_inet6.h anyway

Umm.. but it does already!

peter@beast[8:42pm]~src/sys/i386/conf-103> grep INET6 TEST
#options        INET6                   #IPv6 communications protocols
peter@beast[8:42pm]~src/sys/i386/conf-104> rm ../../compile/TEST/opt_inet6.h
peter@beast[8:42pm]~src/sys/i386/conf-105> config TEST
Don't forget to do a ``make depend''
Kernel build directory is ../../compile/TEST
peter@beast[8:42pm]~src/sys/i386/conf-106> cat ../../compile/TEST/opt_inet6.h 
peter@beast[8:45pm]~src/sys/i386/conf-107> vi TEST
peter@beast[8:45pm]~src/sys/i386/conf-109> grep INET6 TEST
options         INET6                   #IPv6 communications protocols
peter@beast[8:45pm]~src/sys/i386/conf-110> config TEST
Don't forget to do a ``make depend''
Kernel build directory is ../../compile/TEST
peter@beast[8:45pm]~src/sys/i386/conf-111> cat ../../compile/TEST/opt_inet6.h
#define INET6 1
peter@beast[8:45pm]~src/sys/i386/conf-112> 

> 2. put INET6 in opt_inet.h
> 
> I believe that (2) is quite reasonable but (1) should happen anyway.
> 
> Comments ?

I'm not sure what you think is happening, but it most certainly does generate
opt_inet6.h as expected.  (Well, it doesn't put #indef INET6 in it, but there
is no point wasting space doing that..)

> Darren

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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