On 9 May 2001 oliver.kowalke@t-online.de wrote: > where are the constants like IPV4, IPV6, UNIXDOMAIN defined > (indicating the support of IPv4, IPv6,...)? > I found such defined constants in 'UNIX Network Programmin. Vol. 1' > from R.W.Stevens. What are you after? >From command-line, it's sometimes checked whether IPv6 has been loaded by checking for the existence of /proc/sys/net/ipv6 (or /proc/net/if_inet6 if you want to also know if networking is up and how the interfaces are). There are other ways. In kernel configuration, IPv6 is enabled with CONFIG_IPV6 and related options in .config. When programming, you could check whether trying to use AF_INET6 address family returns an error or not. There are probably other ways, for which reading up some source code or Stevens books may help. -- Pekka Savola "Tell me of difficulties surmounted, Netcore Oy not those you stumble over and fall" Systems. Networks. Security. -- Robert Jordan: A Crown of Swords - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org