casaroli opened a new pull request, #4150:
URL: https://github.com/apache/nuttx-apps/pull/4150

   ## Summary
   
   `test_mcast_optlen_ipv6` of `cmocka_net_mcast` now also checks 
`IPV6_JOIN_GROUP` and `IPV6_LEAVE_GROUP` with an option one byte shorter than 
`struct ipv6_mreq`, and `IPV6_MULTICAST_IF` with an option one byte shorter 
than an `int`. Each call must fail with `EINVAL`, as `MCAST_JOIN_GROUP` does.
   
   depends-on: apache/nuttx#22376
   
   ## Impact
   
   Test only. Without apache/nuttx#22376 the case fails: the kernel accepts the 
short options.
   
   ## Testing
   
   `cmocka_net_mcast` on sim:nsh with IPv6, UDP, loopback, ICMPv6 and MLD (CI 
image, apps with the new checks):
   
   | | master 28db4789c34 | this PR |
   |---|---|---|
   | `test_mcast_optlen_ipv6` | FAIL: `0 != -1` at `test_mcast_ipv6.c:211` (the 
short `IPV6_JOIN_GROUP` succeeds) | pass |
   | other 5 cases | pass | pass |
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to