Repository navigation
Conversation
xiaoxiang781216
approved these changes
Nov 26, 2026
casaroli
marked this pull request as ready for review
November 26, 2026 14:38
xiaoxiang781216
approved these changes
Nov 26, 2026
Contributor
|
This CI failure is not caused by the nettest change. The sim-03 job builds the apps tree from this PR's test-merge commit (bace6f5), which was created before testing/fs/wzipfs landed in master. The job does fetch current nuttx master, where the zipfs defconfig now enables CONFIG_TESTING_WZIPFS, so the defconfig normalization reports: A rebase, or any new push, regenerates the merge commit against current master and clears it. No code change is needed in this PR. |
test_mcast_optlen_ipv6 now also gives IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP an option one byte shorter than struct ipv6_mreq, and IPV6_MULTICAST_IF an option one byte shorter than an int. Each call must fail with EINVAL, as MCAST_JOIN_GROUP does. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
casaroli
force-pushed
the
sockopt-ipv6-len-up
branch
from
November 27, 2026 05:39
6c13c1c to
7634bca
Compare
GUIDINGLI
approved these changes
Nov 27, 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
test_mcast_optlen_ipv6ofcmocka_net_mcastnow also checksIPV6_JOIN_GROUPandIPV6_LEAVE_GROUPwith an option one byte shorter thanstruct ipv6_mreq, andIPV6_MULTICAST_IFwith an option one byte shorter than anint. Each call must fail withEINVAL, asMCAST_JOIN_GROUPdoes.Impact
Test only. Without apache/nuttx#22376 the case fails: the kernel accepts the short options.
Testing
cmocka_net_mcaston sim:nsh with IPv6, UDP, loopback, ICMPv6 and MLD (CI image, apps with the new checks):test_mcast_optlen_ipv60 != -1attest_mcast_ipv6.c:211(the shortIPV6_JOIN_GROUPsucceeds)