Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.
Diff: source/thread_br_conn_handler.c
- Revision:
- 22:8740285d8f09
- Parent:
- 21:3754f30e7b69
- Child:
- 55:01540dd2f111
--- a/source/thread_br_conn_handler.c Mon Jun 19 08:00:19 2017 +0100 +++ b/source/thread_br_conn_handler.c Mon Jun 19 10:00:20 2017 +0100 @@ -12,10 +12,15 @@ #include "common_functions.h" #include "eventOS_event_timer.h" #include "thread_bbr_ext.h" +#include "multicast_api.h" #define TRACE_GROUP "TBRH" #define DHCP_SERVER_SHUTDOWN_TIMEOUT (100) +#ifndef MBED_CONF_APP_BACKHAUL_MLD +#define MBED_CONF_APP_BACKHAUL_MLD true +#endif + typedef struct { uint8_t dhcp_prefix[16]; @@ -127,6 +132,11 @@ thread_br_conn_handler_border_router_shutdown_request(); thread_border_router_mdns_responder_stop(); } + +#if (MBED_CONF_APP_BACKHAUL_MLD == true) + tr_debug("Configuring MLD proxying to upstream (interface_id = %d)", thread_br_handler.eth_interface_id); + multicast_fwd_set_proxy_upstream(thread_br_handler.eth_interface_id); +#endif } void thread_br_conn_handler_eth_ready()