You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ma...@apache.org on 2022/11/22 11:45:34 UTC

[incubator-nuttx] 02/06: net/udp: NET_BROADCAST shouldn't configurable if NET_UDP_NO_STACK enable

This is an automated email from the ASF dual-hosted git repository.

masayuki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 7f380533a3af57dbbad30af25a918556fa115eaa
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Nov 20 07:03:49 2022 +0800

    net/udp: NET_BROADCAST shouldn't configurable if NET_UDP_NO_STACK enable
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 net/udp/Kconfig | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/net/udp/Kconfig b/net/udp/Kconfig
index 030a0e6cba..b2606e1fce 100644
--- a/net/udp/Kconfig
+++ b/net/udp/Kconfig
@@ -20,7 +20,7 @@ config NET_UDP_NO_STACK
 	---help---
 		Build without UDP/IP stack even if UDP networking support enabled.
 
-if NET_UDP
+if NET_UDP && !NET_UDP_NO_STACK
 
 config NET_BROADCAST
 	bool "UDP broadcast Rx support"
@@ -28,10 +28,6 @@ config NET_BROADCAST
 	---help---
 		Incoming UDP broadcast support
 
-endif # NET_UDP
-
-if NET_UDP && !NET_UDP_NO_STACK
-
 config NET_UDP_CHECKSUMS
 	bool "UDP checksums"
 	default y if NET_IPv6