Repository navigation
boards/lm3s6965-ek: enable NET_SOCKOPTS in qemu-protected - #21335
Merged
Merged
Conversation
In lm3s6965-ek:qemu-protected, commit d9d9d3f dropped the DNS client (CONFIG_NETDB_DNSCLIENT) to recover kernel flash headroom. However, the DNS client was previously the sole selector of CONFIG_NET_SOCKOPTS for this target. Because CONFIG_NETUTILS_DHCPC selects CONFIG_NET_BINDTODEVICE, the absence of CONFIG_NET_SOCKOPTS caused s_boundto to be omitted from struct socket_conn_s (include/nuttx/net/net.h), breaking compilation in net/icmp/icmp_sendmsg.c, tcp_finddev.c, and udp_finddev.c during the CI arm-ti build. Re-enable CONFIG_NET_SOCKOPTS=y explicitly in qemu-protected defconfig. This provides the required s_boundto definition, resolves the arm-ti CI failure, and avoids defconfig normalization side-effects across other architectures. Signed-off-by: Swatantra Yadav <[email protected]> Assisted-by: Google Gemini
Swatantra-66
requested review from
acassis,
anchao,
masayuki2009,
xiaoxiang781216 and
yamt
as code owners
November 1, 2026 17:37
|
xiaoxiang781216
approved these changes
Nov 1, 2026
casaroli
approved these changes
Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
In
lm3s6965-ek:qemu-protected, commit d9d9d3f dropped the DNS client (CONFIG_NETDB_DNSCLIENT) to recover kernel flash headroom. However, the DNS client was previously the sole selector ofCONFIG_NET_SOCKOPTSfor this board configuration.Because
CONFIG_NETUTILS_DHCPCselectsCONFIG_NET_BINDTODEVICE, the absence ofCONFIG_NET_SOCKOPTScauseds_boundtoto be omitted fromstruct socket_conn_s(include/nuttx/net/net.h), breaking compilation innet/icmp/icmp_sendmsg.c,tcp_finddev.c, andudp_finddev.cduring the CIarm-tibuild.Related to apache/nuttx-apps#3954. While
apache/nuttx-apps#3954attempted to selectNET_SOCKOPTSfrom DHCPC, that caused defconfig normalization failures on boards whereCONFIG_NET_SOCKOPTS=ywas already explicitly set (such asnucleo-h563zi:netnsh).This patch explicitly re-enables
CONFIG_NET_SOCKOPTS=yinboards/arm/tiva/lm3s6965-ek/configs/qemu-protected/defconfig. This solves the issue cleanly at the source whereCONFIG_NETDB_DNSCLIENTwas removed, provides the requireds_boundtofield, and avoids any normalization side effects across other architectures.Impact
lm3s6965-ek).lm3s6965-ek:qemu-protected.s_boundtomember compilation error when building DHCP client withNET_BINDTODEVICE. Adds negligible flash footprint (~80 bytes), well within the ~2.6 KiB headroom recovered in PR boards/lm3s6965-ek: drop dns client and telnetd from qemu-protected #21320.Testing
tools/savedefconfig.CONFIG_NET_SOCKOPTS=yplacement in alphabetical order.