Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions subsys/net/lib/config/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ config HEAP_MEM_POOL_ADD_SIZE_NET_CONFIG
default 1024
depends on SETTINGS

config NET_CONFIG_SETTINGS_SHELL_ACCESS
bool "Configure options via shell"
select SETTINGS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

depends on SHELL and depends on SETTINGS (instead)?

help
If this is set, then user is able to use "net config" shell to
update the default options. This requires settings db.

config NET_CONFIG_AUTO_INIT
bool "Init networking support automatically during device startup"
default y if !(USB_DEVICE_NETWORK || USBD_CDC_ECM_CLASS || USBD_CDC_NCM_CLASS)
Expand Down
1 change: 1 addition & 0 deletions subsys/net/lib/shell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
zephyr_library_sources_ifdef(CONFIG_NET_SHELL_PKT_ALLOC_SUPPORTED allocs.c)
zephyr_library_sources_ifdef(CONFIG_NET_SHELL_ETHERNET_SUPPORTED arp.c)
zephyr_library_sources_ifdef(CONFIG_NET_SHELL_CAPTURE_SUPPORTED capture.c)
zephyr_library_sources_ifdef(CONFIG_NET_SHELL_CONFIG_SETTINGS_SUPPORTED config.c)
zephyr_library_sources(conn.c)
zephyr_library_sources_ifdef(CONFIG_NET_SHELL_DHCPV4_SUPPORTED dhcpv4.c)
zephyr_library_sources_ifdef(CONFIG_NET_SHELL_DHCPV6_SUPPORTED dhcpv6.c)
Expand Down
5 changes: 5 additions & 0 deletions subsys/net/lib/shell/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ config NET_SHELL_CAPTURE_SUPPORTED
default y
depends on NET_SHELL_SHOW_DISABLED_COMMANDS || NET_CAPTURE

config NET_SHELL_CONFIG_SETTINGS_SUPPORTED
bool "Network stack configuration"
default y
depends on NET_SHELL_SHOW_DISABLED_COMMANDS || NET_CONFIG_SETTINGS

config NET_SHELL_DHCPV4_SUPPORTED
bool "DHCPv4 start / stop"
default y
Expand Down
Loading