Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[netif] add wpan multicast group join for NCP #2478

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

Irving-cl
Copy link
Contributor

@Irving-cl Irving-cl commented Sep 5, 2024

This PR adds wpan multicast group join functionality for NCP.

This PR allows the applications to join/leave multicast groups in the Thread network. The functionality is implemented by listening to MLD reports sent by kernel. And then the Netif module will send the join/leave request to the NCP and let NCP join/leave the multicast group. Previous work on this in OT: openthread/openthread#4687

In this PR, NcpSpinel::Ip6MulAddrUpdateSubscription is implemented as empty. This will be implemented in a following PR. This PR adds a unit test case to verify that the MLD reports can be successfully received and handled.

Copy link

codecov bot commented Sep 5, 2024

Codecov Report

Attention: Patch coverage is 59.85401% with 55 lines in your changes missing coverage. Please review.

Project coverage is 45.70%. Comparing base (2b41187) to head (c69a206).
Report is 803 commits behind head on main.

Files with missing lines Patch % Lines
src/ncp/posix/netif.cpp 60.27% 21 Missing and 8 partials ⚠️
tests/gtest/test_netif.cpp 61.29% 20 Missing and 4 partials ⚠️
src/ncp/ncp_spinel.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2478       +/-   ##
===========================================
- Coverage   55.77%   45.70%   -10.08%     
===========================================
  Files          87      100       +13     
  Lines        6890    11819     +4929     
  Branches        0      864      +864     
===========================================
+ Hits         3843     5402     +1559     
- Misses       3047     6127     +3080     
- Partials        0      290      +290     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Irving-cl Irving-cl force-pushed the netif_wpan_multicast_addr branch 2 times, most recently from ba312ac to bbf2fd4 Compare September 11, 2024 07:06
@Irving-cl Irving-cl changed the title [netif] add wpan multicast address subscribe/unsubscribe for NCP [netif] add wpan multicast group join for NCP Sep 11, 2024
@Irving-cl Irving-cl marked this pull request as ready for review September 11, 2024 07:13
@Irving-cl Irving-cl force-pushed the netif_wpan_multicast_addr branch from bbf2fd4 to abf2a30 Compare September 12, 2024 09:34
@Irving-cl Irving-cl requested a review from superwhd September 12, 2024 09:35
@Irving-cl Irving-cl force-pushed the netif_wpan_multicast_addr branch from abf2a30 to babafd1 Compare September 12, 2024 10:06
@Irving-cl Irving-cl requested a review from superwhd September 12, 2024 10:08
@Irving-cl Irving-cl force-pushed the netif_wpan_multicast_addr branch from babafd1 to 3b9c62a Compare September 13, 2024 07:36
@Irving-cl Irving-cl requested a review from sunytt September 13, 2024 07:39
@Irving-cl Irving-cl requested a review from jwhui September 13, 2024 09:17
@Irving-cl Irving-cl mentioned this pull request Sep 11, 2024
17 tasks
@jwhui jwhui requested a review from abtink September 13, 2024 17:33
Copy link
Member

@abtink abtink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍
Couple of smaller suggestions below:

@Irving-cl Irving-cl force-pushed the netif_wpan_multicast_addr branch from 3b9c62a to b214f73 Compare September 14, 2024 00:45
@Irving-cl Irving-cl force-pushed the netif_wpan_multicast_addr branch 2 times, most recently from b8ed379 to 0d4a0ee Compare September 14, 2024 01:42
@Irving-cl Irving-cl force-pushed the netif_wpan_multicast_addr branch from 0d4a0ee to 692e3b5 Compare September 14, 2024 02:56
@Irving-cl Irving-cl requested a review from bukepo September 14, 2024 02:57

Unverified

The signing certificate or its chain could not be verified.
@Irving-cl Irving-cl force-pushed the netif_wpan_multicast_addr branch from 692e3b5 to c69a206 Compare September 14, 2024 02:58
@jwhui jwhui merged commit 98028cb into openthread:main Sep 19, 2024
32 checks passed
@Irving-cl Irving-cl deleted the netif_wpan_multicast_addr branch September 19, 2024 05:11
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.

None yet

6 participants