mirror of https://github.com/ARMmbed/mbed-os.git
Enable MPL by default for 6LoWPAN-ND.
In Thread network, MPL is already enabled so this causes both to behave similarly.pull/5660/head
parent
373e6ab4fb
commit
720ebc130c
|
@ -23,6 +23,7 @@
|
||||||
#include "include/nd_tasklet.h"
|
#include "include/nd_tasklet.h"
|
||||||
#include "include/mesh_system.h"
|
#include "include/mesh_system.h"
|
||||||
#include "ns_event_loop.h"
|
#include "ns_event_loop.h"
|
||||||
|
#include "multicast_api.h"
|
||||||
|
|
||||||
// For tracing we need to define flag, have include and define group
|
// For tracing we need to define flag, have include and define group
|
||||||
#define HAVE_DEBUG 1
|
#define HAVE_DEBUG 1
|
||||||
|
@ -265,6 +266,13 @@ void nd_tasklet_configure_and_connect_to_network(void)
|
||||||
tasklet_data_ptr->network_interface_id,
|
tasklet_data_ptr->network_interface_id,
|
||||||
MBED_CONF_MBED_MESH_API_6LOWPAN_ND_PANID_FILTER);
|
MBED_CONF_MBED_MESH_API_6LOWPAN_ND_PANID_FILTER);
|
||||||
|
|
||||||
|
// Enable MPL by default
|
||||||
|
const uint8_t all_mpl_forwarders[16] = {0xff, 0x03, [15]=0xfc};
|
||||||
|
multicast_mpl_domain_subscribe(tasklet_data_ptr->network_interface_id,
|
||||||
|
all_mpl_forwarders,
|
||||||
|
MULTICAST_MPL_SEED_ID_DEFAULT,
|
||||||
|
NULL);
|
||||||
|
|
||||||
status = arm_nwk_interface_up(tasklet_data_ptr->network_interface_id);
|
status = arm_nwk_interface_up(tasklet_data_ptr->network_interface_id);
|
||||||
if (status >= 0) {
|
if (status >= 0) {
|
||||||
tasklet_data_ptr->tasklet_state = TASKLET_STATE_BOOTSTRAP_STARTED;
|
tasklet_data_ptr->tasklet_state = TASKLET_STATE_BOOTSTRAP_STARTED;
|
||||||
|
|
Loading…
Reference in New Issue