Skip to content

Conversation

@aurel32
Copy link
Contributor

@aurel32 aurel32 commented Nov 26, 2025

Add guidelines in Kconfig explaining the minimum required MQTT_SN_LIB_MAX_ADDR_SIZE for UDP transport and IPv4 and or IPv6. Also explain when this value might need to be changed.

In addition, introduce BUILD_ASSERT checks in the UDP transport implementation to ensure the configured maximum address size is large enough for the enabled IP families.

Add guidelines in Kconfig explaining the minimum required
MQTT_SN_LIB_MAX_ADDR_SIZE for UDP transport and IPv4 and or IPv6. Also
explain when this value might need to be changed.

Use these values to provide a sane default for IPv4 and IPv6.

Signed-off-by: Aurelien Jarno <[email protected]>
Introduce BUILD_ASSERT checks in the UDP transport implementation to
ensure the configured maximum address size is large enough for the
enabled IP families.

Signed-off-by: Aurelien Jarno <[email protected]>
@aurel32 aurel32 force-pushed the mqtt-sn-max-address-size branch from 808d4cf to 1ad30c9 Compare November 27, 2025 19:13
@zephyrbot zephyrbot added the area: Samples Samples label Nov 27, 2025
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants