net/usrsock: Can enable TCP/UDP IP stack with Usrsock enabled

Some use cases, such as VPN, use both the device's network
stack with the Usrsock daemon and the Kernel's network stack.
Therefore, remove NET_TCP_NO_STACK/NET_UDP_NO_STACK select
from Usrsock's Kconfig.
This commit is contained in:
SPRESENSE 2023-06-27 12:11:38 +09:00 committed by Xiang Xiao
parent a1f26ab24b
commit 011d45e956
3 changed files with 2 additions and 4 deletions

View File

@ -14,7 +14,7 @@ config NET_TCP
config NET_TCP_NO_STACK
bool "Disable TCP/IP Stack"
default n
default NET_USRSOCK_TCP if NET_USRSOCK
select NET_TCP
---help---
Build without TCP/IP stack even if TCP networking support enabled.

View File

@ -15,7 +15,7 @@ config NET_UDP
config NET_UDP_NO_STACK
bool "Disable UDP/IP Stack"
default n
default NET_USRSOCK_UDP if NET_USRSOCK
select NET_UDP
---help---
Build without UDP/IP stack even if UDP networking support enabled.

View File

@ -76,12 +76,10 @@ config NET_USRSOCK_NPOLLWAITERS
config NET_USRSOCK_UDP
bool "User-space daemon provides UDP sockets"
default n
select NET_UDP_NO_STACK
config NET_USRSOCK_TCP
bool "User-space daemon provides TCP sockets"
default n
select NET_TCP_NO_STACK
config NET_USRSOCK_ICMP
bool "User-space daemon provides ICMP sockets"