From 5fd5cc0b0a017f5c227140b5cd9a6e5eabb654a1 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Fri, 26 Jul 2019 14:05:03 +0000 Subject: [PATCH] Merged in masayuki2009/nuttx.nuttx/change_udp_broadcast (pull request #954) net/udp: Remove net stack dependency from CONFIG_NET_BROADCAST This change allows us to use CONFIG_NET_BROADCAST without network stack. (i.e. usrsock application can use broadcast) Signed-off-by: Masayuki Ishikawa Approved-by: Gregory Nutt --- net/udp/Kconfig | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/net/udp/Kconfig b/net/udp/Kconfig index e447002782..ec9609c361 100644 --- a/net/udp/Kconfig +++ b/net/udp/Kconfig @@ -19,6 +19,16 @@ config NET_UDP_NO_STACK ---help--- Build without UDP/IP stack even if UDP networking support enabled. +if NET_UDP + +config NET_BROADCAST + bool "UDP broadcast Rx support" + default n + ---help--- + Incoming UDP broadcast support + +endif # NET_UDP + if NET_UDP && !NET_UDP_NO_STACK config NET_UDP_BINDTODEVICE @@ -45,12 +55,6 @@ config NET_UDP_CONNS ---help--- The maximum amount of open concurrent UDP sockets -config NET_BROADCAST - bool "UDP broadcast Rx support" - default n - ---help--- - Incoming UDP broadcast support - config NET_UDP_READAHEAD bool "Enable UDP/IP read-ahead buffering" default y