Commit 001966c5 authored by Dimitris Lampridis's avatar Dimitris Lampridis

sw: use multicast UDP for Event messages

parent aadfec6a
...@@ -314,7 +314,7 @@ static void wrtd_init_tx(void) ...@@ -314,7 +314,7 @@ static void wrtd_init_tx(void)
static const struct trtl_ep_eth_address addr = { static const struct trtl_ep_eth_address addr = {
.type = TRTL_EP_FRAME_UDP, .type = TRTL_EP_FRAME_UDP,
.dst_mac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}, .dst_mac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
.dst_ip = 0xFFFFFFFF, /* broadcast on 255.255.255.255 */ .dst_ip = 0xE000179F, /* multicast on 224.0.23.159 */
.src_ip = 0xC0A85A11, .src_ip = 0xC0A85A11,
.dst_port = WRTD_UDP_PORT, .dst_port = WRTD_UDP_PORT,
.src_port = WRTD_UDP_PORT, .src_port = WRTD_UDP_PORT,
...@@ -533,10 +533,13 @@ static void wrtd_init_rx(void) ...@@ -533,10 +533,13 @@ static void wrtd_init_rx(void)
static const struct trtl_ep_eth_address addr = { static const struct trtl_ep_eth_address addr = {
.type = TRTL_EP_FRAME_UDP, .type = TRTL_EP_FRAME_UDP,
.dst_mac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}, .dst_mac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
.dst_ip = 0xE000179F, /* multicast on 224.0.23.159 */
.dst_port = WRTD_UDP_PORT, .dst_port = WRTD_UDP_PORT,
.ethertype = 0x800, /* IPv4 */ .ethertype = 0x800, /* IPv4 */
.filter = (TRTL_EP_FILTER_UDP .filter = (TRTL_EP_FILTER_UDP
| TRTL_EP_FILTER_DST_PORT | TRTL_EP_FILTER_DST_PORT
| TRTL_EP_FILTER_ETHERTYPE
| TRTL_EP_FILTER_DST_IP
| TRTL_EP_FILTER_ENABLE) | TRTL_EP_FILTER_ENABLE)
}; };
rmq_bind_in(WRTD_RMQ, TRTL_EP_ETH, &addr); rmq_bind_in(WRTD_RMQ, TRTL_EP_ETH, &addr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment