Skip to content

Commit 840c54d

Browse files
committed
[ip6] bypass filtering for multicast addresses larger than RealmLocal
1 parent f52cf29 commit 840c54d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/net/ip6.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,9 @@ Error Ip6::PassToHost(OwnedPtr<Message> &aMessagePtr,
963963
VerifyOrExit(aReceive, error = kErrorDrop);
964964
}
965965

966-
if (mReceiveFilterEnabled && aReceive)
966+
if (mReceiveFilterEnabled && aReceive &&
967+
(!aHeader.GetDestination().IsMulticast() || aHeader.GetDestination().IsLinkLocalMulticast() ||
968+
aHeader.GetDestination().IsRealmLocalMulticast()))
967969
{
968970
switch (aIpProto)
969971
{

0 commit comments

Comments
 (0)