[ds6-devel] updated configure

Mauro Tortonesi mauro@deepspace6.net
Mon Dec 23 22:43:44 2002


On Fri, 20 Dec 2002, Chris Leishman wrote:

> Hi all,
>
> I've updated the autoconf stuff for nc6, along the lines of what I
> mentioned the other day.
>
> Now ipv6 support is fully optional at compile time (and by default will
> be included if all the functions & structures are available).  All
> other checks (eg. that ipv6 sockets can be created - indicating kernel
> support) have been moved to runtime.

hi chris,

	as always, you've done an excellent work ;-) but i really wonder
if the PROTO_INET6 macro as it is now really does make any sense. it only
checks if the constants PF_INET6 and AF_INET6 are defined by the include
files. if a system has those constants in its headers, it does not mean
that it supports ipv6 (think of a glibc 2.2 linux system with a custom
kernel where ipv6 support has been disabled).

	IMVHO, a macro that checks if the system supports PF_INET6 sockets
by trying to create one (like the old IN6_ENABLE_IPV6 macro did) would be
more useful here. really, the best thing to do would be to write a runtime
check (a piece of C code like the one included in IN6_ENABLE_IPV6) to find
out if the system supports IPv6 (and in particular the creation of
PF_INET6 sockets).

	what do you say?

-- 
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi			mauro@deepspace6.net
				mauro@ferrara.linux.it
Deep Space 6 - IPv6 on Linux	http://www.deepspace6.net
Ferrara Linux Users Group	http://www.ferrara.linux.it


More information about the ds6-devel mailing list