Skip to content

Commit 8c74e35

Browse files
committed
net: l2: openthread: border_router: Delete multicast route by iface
This commit makes use of zephyrproject-rtos#98464 and deletes a multicast route by specified interface. Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
1 parent d054025 commit 8c74e35

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

subsys/net/l2/openthread/openthread_border_router.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ static void ot_bbr_multicast_listener_handler(void *context,
297297
}
298298
}
299299
} else {
300-
struct net_route_entry_mcast *route_to_del = net_route_mcast_lookup(&recv_addr);
300+
struct net_route_entry_mcast *route_to_del =
301+
net_route_mcast_lookup_by_iface(&recv_addr, ot_context->iface);
301302
struct net_if_mcast_addr *addr_to_del;
302303

303304
addr_to_del = net_if_ipv6_maddr_lookup(&recv_addr, &(ot_context->iface));
@@ -307,6 +308,8 @@ static void ot_bbr_multicast_listener_handler(void *context,
307308

308309
if (addr_to_del != NULL && net_if_ipv6_maddr_is_joined(addr_to_del)) {
309310
net_if_ipv6_maddr_leave(ot_context->iface, addr_to_del);
311+
net_if_ipv6_maddr_rm(ot_context->iface,
312+
(const struct in6_addr *)&recv_addr);
310313
}
311314
}
312315
}

0 commit comments

Comments
 (0)