Skip to content

Commit

Permalink
Multicast forwarding is separated from the routing flag
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Mika committed Oct 13, 2020
1 parent 30f4315 commit 4ffe6a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/6LoWPAN/Thread/thread_bbr_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,13 +629,14 @@ static void thread_bbr_network_data_send(thread_bbr_t *this, uint8_t prefix[8],

static void thread_bbr_routing_enable(thread_bbr_t *this, bool multicast_routing_enabled)
{
// Start multicast proxying
// We do not enable multicast forwarding as there is other default router present in network
multicast_fwd_set_forwarding(this->interface_id, multicast_routing_enabled);

if (this->routing_enabled) {
return;
}
tr_info("br: enable routing");
// Start multicast proxying
// We do not enable multicast forwarding as there is other default router present in network
multicast_fwd_set_forwarding(this->interface_id, multicast_routing_enabled);
this->routing_enabled = true;
}

Expand Down

0 comments on commit 4ffe6a1

Please sign in to comment.