tests: posix: headers: net: Add test for ipv6_mreq

The "struct ipv6_mreq" is supported so enable the tests for it.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
Jukka Rissanen 2024-11-08 17:16:49 +02:00 committed by Anas Nashif
commit d1e42fc147

View file

@ -62,10 +62,8 @@ ZTEST(posix_headers, test_netinet_in_h)
struct in6_addr mcg6 = { { { 0xff, 0x0e, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0x01 } } };
/* not implemented */
/* zassert_not_equal(-1, offsetof(struct ipv6_mreq, ipv6mr_multiaddr)); */
/* not implemented */
/* zassert_not_equal(-1, offsetof(struct ipv6_mreq, ipv6mr_interface)); */
zassert_not_equal(-1, offsetof(struct ipv6_mreq, ipv6mr_multiaddr));
zassert_not_equal(-1, offsetof(struct ipv6_mreq, ipv6mr_ifindex));
zassert_not_equal(-1, IPPROTO_IP);
zassert_not_equal(-1, IPPROTO_IPV6);