Skip to content

Commit 4ffe6a1

Browse files
author
Mika
committed
Multicast forwarding is separated from the routing flag
Previously Multicast was always forwarded by default. But as multicast forwarding and default routing are separate the multicast forward was not enabled if the Border router was not main border router all the time.
1 parent 30f4315 commit 4ffe6a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/6LoWPAN/Thread/thread_bbr_api.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,13 +629,14 @@ static void thread_bbr_network_data_send(thread_bbr_t *this, uint8_t prefix[8],
629629

630630
static void thread_bbr_routing_enable(thread_bbr_t *this, bool multicast_routing_enabled)
631631
{
632+
// Start multicast proxying
633+
// We do not enable multicast forwarding as there is other default router present in network
634+
multicast_fwd_set_forwarding(this->interface_id, multicast_routing_enabled);
635+
632636
if (this->routing_enabled) {
633637
return;
634638
}
635639
tr_info("br: enable routing");
636-
// Start multicast proxying
637-
// We do not enable multicast forwarding as there is other default router present in network
638-
multicast_fwd_set_forwarding(this->interface_id, multicast_routing_enabled);
639640
this->routing_enabled = true;
640641
}
641642

0 commit comments

Comments
 (0)