Skip to content

Commit 2a57d59

Browse files
Merge pull request #5252 from ARMmbed/6lowpan-enable-MPL
Enable MPL by default for 6LoWPAN-ND.
2 parents 926ed13 + 720ebc1 commit 2a57d59

File tree

1 file changed

+8
-0
lines changed
  • features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source

1 file changed

+8
-0
lines changed

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/nd_tasklet.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "include/nd_tasklet.h"
2424
#include "include/mesh_system.h"
2525
#include "ns_event_loop.h"
26+
#include "multicast_api.h"
2627

2728
// For tracing we need to define flag, have include and define group
2829
#define HAVE_DEBUG 1
@@ -265,6 +266,13 @@ void nd_tasklet_configure_and_connect_to_network(void)
265266
tasklet_data_ptr->network_interface_id,
266267
MBED_CONF_MBED_MESH_API_6LOWPAN_ND_PANID_FILTER);
267268

269+
// Enable MPL by default
270+
const uint8_t all_mpl_forwarders[16] = {0xff, 0x03, [15]=0xfc};
271+
multicast_mpl_domain_subscribe(tasklet_data_ptr->network_interface_id,
272+
all_mpl_forwarders,
273+
MULTICAST_MPL_SEED_ID_DEFAULT,
274+
NULL);
275+
268276
status = arm_nwk_interface_up(tasklet_data_ptr->network_interface_id);
269277
if (status >= 0) {
270278
tasklet_data_ptr->tasklet_state = TASKLET_STATE_BOOTSTRAP_STARTED;

0 commit comments

Comments
 (0)