Skip to content

Commit

Permalink
[ip6] always deliver multicast to host (#9824)
Browse files Browse the repository at this point in the history
This commit always delivers multicast traffic to host.

Without this change, host will not be able to receive link-local and
mesh-local multicast traffic, even the host subscribes to some multicast
addresses in these scopes.

Note that this does not change the host forwarding rules, as link-local and
mesh-local traffic are not supposed to be forwarded to adjacent links.
  • Loading branch information
bukepo authored Feb 2, 2024
1 parent b5b9a62 commit 74c833b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/net/ip6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,8 @@ Error Ip6::HandleDatagram(OwnedPtr<Message> aMessagePtr, const void *aLinkMessag
}
#endif

forwardHost = header.GetDestination().IsMulticastLargerThanRealmLocal();
// Always forward multicast packets to host network stack
forwardHost = true;

if ((aMessagePtr->IsOriginThreadNetif() || aMessagePtr->GetMulticastLoop()) &&
Get<ThreadNetif>().IsMulticastSubscribed(header.GetDestination()))
Expand Down

0 comments on commit 74c833b

Please sign in to comment.