Re: depending on IPv6 symbols
From: David Miller <davem@davemloft.net>
Date: 2007-02-06 22:50:04
From: David Miller <davem@davemloft.net>
Date: 2007-02-06 22:50:04
From: Roland Dreier <redacted> Date: Tue, 06 Feb 2007 14:43:15 -0800
So I hope we can come up with a short-range plan to deal with the possibility of built-in code calling icmpv6_send() at least... As you said, should we just convert IPV6 to a bool instead of a tristate?
Netfilter handles this by using the Kconfig dependency construct: config FOO depends on (IPV6 || IPV6=n) which essentially means: if IPV6 is disabled: Allow FOO to build modular or static, but will get no ipv6 support. if IPV6 is "y" Allow FOO to be a static or modular build if IPV6 is "m" Allow FOO to be a modular build only This is the only way to make it all work out currently.