Skip to content

Commit

Permalink
net/usrsock: Can enable TCP/UDP IP stack with Usrsock enabled
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SPRESENSE committed Sep 20, 2023
1 parent c37a85b commit 1a71910
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion net/tcp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion net/udp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions net/usrsock/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1a71910

Please sign in to comment.