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
src/ncp/posix/netif.cpp Outdated Show resolved Hide resolved
src/ncp/posix/netif.cpp Show resolved Hide resolved
src/ncp/posix/netif.cpp Outdated Show resolved Hide resolved
src/ncp/posix/netif.hpp Outdated Show resolved Hide resolved
src/ncp/posix/netif.cpp Outdated Show resolved Hide resolved
src/ncp/posix/netif.hpp Outdated Show resolved Hide resolved
src/ncp/posix/netif.cpp Show resolved Hide resolved
src/ncp/posix/netif.cpp Outdated Show resolved Hide resolved
src/ncp/posix/netif.cpp Outdated Show resolved Hide resolved
src/ncp/posix/netif.cpp Show resolved Hide resolved
@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:

src/ncp/posix/netif.cpp Outdated Show resolved Hide resolved
src/ncp/posix/netif.cpp Outdated Show resolved Hide resolved
@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
src/ncp/posix/netif.cpp Outdated Show resolved Hide resolved
@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.

6 participants