Skip to content

Commit dc8f023

Browse files
rlubosfabiobaltieri
authored andcommitted
net: ipv6: Fix Kconfig dependencies when native IPv6 is disabled
In case native IPv6 is disabled, Kconfig entries related to native IPv6 stack should not be enabled. Otherwise, circular dependencies can be created if native stack is disabled, as in case of recent changes in NET_IPV6_RA_RDNSS option (where a dependency for a native stack module was enabled). Signed-off-by: Robert Lubos <[email protected]>
1 parent fbe930a commit dc8f023

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

subsys/net/ip/Kconfig.ipv6

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ config NET_IF_IPV6_PREFIX_COUNT
3737
int "Max number of IPv6 prefixes per network interface"
3838
default 2
3939

40+
if NET_NATIVE_IPV6
41+
4042
config NET_INITIAL_HOP_LIMIT
4143
int "Initial hop limit for a connection"
4244
default 64
@@ -190,4 +192,5 @@ module-str = Log level for IPv6 neighbor cache
190192
module-help = Enables IPv6 Neighbor Cache code to output debug messages.
191193
source "subsys/net/Kconfig.template.log_config.net"
192194

195+
endif # NET_NATIVE_IPV6
193196
endif # NET_IPV6

0 commit comments

Comments
 (0)