zephyr/subsys/net/lib/sockets/Kconfig
Paul Sokolovsky c7da45f9e2 net: Enable logging in more modules if CONFIG_NET_LOG_GLOBAL defined
This is useful to enable error/warning logging across the net
codebase (less useful for debug level logging, but that's true
for CONFIG_NET_LOG_GLOBAL already).

Implementation-wise, instead of keeping adding to long list of
"select"'s in CONFIG_NET_LOG_GLOBAL and thus introduce component
inter-dependencies, add "default y if NET_LOG_GLOBAL" to
individual components' logging options.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2017-09-18 08:19:27 -04:00

44 lines
1.1 KiB
Plaintext

# Kconfig - BSD Sockets compatible API
#
# Copyright (c) 2017 Linaro Limited.
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig NET_SOCKETS
bool "BSD Sockets compatible API"
default n
help
Provide BSD Sockets like API on top of native Zephyr networking API.
if NET_SOCKETS
config NET_SOCKETS_POSIX_NAMES
bool "Standard POSIX names for Sockets API"
default n
help
By default, Sockets API function are prefixed with ``zsock_`` to avoid
namespacing issues. If this option is enabled, they will be provided
with standard POSIX names like socket(), recv(), and close(), to help
with porting existing code. Note that close() may require a special
attention, as in POSIX it closes any file descriptor, while with this
option enabled, it will still apply only to sockets.
config NET_SOCKETS_POLL_MAX
int
prompt "Max number of supported poll() entries"
default 3
help
Maximum number of entries supported for poll() call.
config NET_DEBUG_SOCKETS
bool "Debug BSD Sockets compatible API calls"
default n
default y if NET_LOG_GLOBAL
help
Enables logging for sockets code. (Logging level is defined by
SYS_LOG_NET_LEVEL setting).
endif # NET_SOCKETS