nuttx/net/socket/Kconfig

94 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
menu "Socket Support"
2023-02-13 17:30:21 +01:00
config NET_PREALLOC_DEVIF_CALLBACKS
int "Preallocated socket callbacks"
default 16 if !DEFAULT_SMALL
default 4 if DEFAULT_SMALL
---help---
2023-02-13 17:30:21 +01:00
Number of preallocated socket callbacks (all tasks).
2023-02-13 17:30:21 +01:00
This number of callbacks will be pre-allocated during system boot.
If dynamic callbacks allocation is enabled, more callbacks may be
allocated at a later time, as the system needs them. Else this
will be the maximum number of callbacks available to the system
at all times.
Set to 0 to disable (and rely only on dynamic allocations).
config NET_ALLOC_DEVIF_CALLBACKS
int "Dynamic socket callbacks allocation"
default 0
---help---
Dynamic memory allocations for socket callbacks.
When set to 0 all dynamic allocations are disabled.
When set to 1 a new callback will be allocated every time, and
it will be free'd when no longer needed.
Setting this to 2 or more will allocate the callbacks in batches
(with batch size equal to this config). When a callback is no
longer needed, it will be returned to the free callbacks pool,
and it will never be deallocated!
config NET_SOCKOPTS
bool "Socket options"
default n
---help---
Enable or disable support for socket options
config NET_TCPPROTO_OPTIONS
bool "TCP proto socket options"
default n
---help---
Enable or disable support for TCP protocol level socket options.
config NET_UDPPROTO_OPTIONS
bool
default n
---help---
Enable or disable support for UDP protocol level socket options.
2020-06-15 10:23:25 +02:00
config NET_CANPROTO_OPTIONS
bool
default n
---help---
Enable or disable support for CAN protocol level socket option
if NET_SOCKOPTS
config NET_SOLINGER
bool "SO_LINGER socket option"
default n
depends on NET_TCP_WRITE_BUFFERS || NET_UDP_WRITE_BUFFERS
select NET_UDP_NOTIFIER if NET_UDP && !NET_UDP_NO_STACK
---help---
Enable or disable support for the SO_LINGER socket option. Requires
write buffer support.
2020-06-15 10:23:25 +02:00
config NET_TIMESTAMP
bool "SO_TIMESTAMP socket option"
default n
depends on NET_CAN || NET_ETHERNET
2020-06-15 10:23:25 +02:00
---help---
Enable or disable support for the SO_TIMESTAMP socket option.
Supported on SocketCAN and Ethernet/UDP.
2020-06-15 10:23:25 +02:00
config NET_BINDTODEVICE
bool "SO_BINDTODEVICE socket option Bind-to-device support"
default n
select NETDEV_IFINDEX
---help---
Enable support for the NET_BINDTODEVICE socket option.
Linux has SO_BINDTODEVICE but in NuttX this option is instead
specific to the UDP protocol.
endif # NET_SOCKOPTS
2020-06-15 10:23:25 +02:00
endmenu # Socket Support