-
CONFIG_LOG_BACKEND_NET_MAX_BUF_SIZE
¶
Max syslog message size
Type: int
Help¶
As each syslog message needs to fit to UDP packet, set this value so that messages are not truncated. The RFC 5426 recommends that for IPv4 the size is 480 octets and for IPv6 the size is 1180 octets. As each buffer will use RAM, the value should be selected so that typical messages will fit the buffer.
Defaults¶
- 1180 if
NET_IPV6
&&LOG_BACKEND_NET
&&LOG
- 480 if
NET_IPV4
&&LOG_BACKEND_NET
&&LOG
- 256 if
LOG_BACKEND_NET
&&LOG
Kconfig definition¶
At subsys/logging/Kconfig:394
Included via Kconfig:10
→ Kconfig.zephyr:39
→ subsys/Kconfig:20
Menu path: (top menu) → Logging
config LOG_BACKEND_NET_MAX_BUF_SIZE int prompt "Max syslog message size" ifLOG_BACKEND_NET
&&LOG
range 64 1180 ifLOG_BACKEND_NET
&&LOG
default 1180 ifNET_IPV6
&&LOG_BACKEND_NET
&&LOG
default 480 ifNET_IPV4
&&LOG_BACKEND_NET
&&LOG
default 256 ifLOG_BACKEND_NET
&&LOG
depends onLOG_BACKEND_NET
&&LOG
help As each syslog message needs to fit to UDP packet, set this value so that messages are not truncated. The RFC 5426 recommends that for IPv4 the size is 480 octets and for IPv6 the size is 1180 octets. As each buffer will use RAM, the value should be selected so that typical messages will fit the buffer.
(Definitions include propagated dependencies, including from if’s and menus.)