Skip to content
Permalink
Browse files

eth: eth_mcux: Register mDNS multicast address

If mDNS is in use, add the mDNS multicast MAC address to white list.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
  • Loading branch information...
Loic Poulain authored and jukkar committed May 25, 2019
1 parent c3ccbbb commit e72e457360ffa8b07f29f6a5ce496a62d7ceb253
Showing with 7 additions and 0 deletions.
  1. +7 −0 drivers/ethernet/eth_mcux.c
@@ -787,6 +787,10 @@ static int eth_0_init(struct device *dev)
#if defined(CONFIG_PTP_CLOCK_MCUX)
u8_t ptp_multicast[6] = { 0x01, 0x80, 0xC2, 0x00, 0x00, 0x0E };
#endif
#if defined(CONFIG_MDNS_RESPONDER) || defined(CONFIG_MDNS_RESOLVER)
/* standard multicast MAC address */
u8_t mdns_multicast[6] = { 0x01, 0x00, 0x5E, 0x00, 0x00, 0xFB };
#endif

#if defined(CONFIG_PTP_CLOCK_MCUX)
ts_tx_rd = 0;
@@ -844,6 +848,9 @@ static int eth_0_init(struct device *dev)
ENET_Ptp1588Configure(ENET, &context->enet_handle,
&context->ptp_config);
#endif
#if defined(CONFIG_MDNS_RESPONDER) || defined(CONFIG_MDNS_RESOLVER)
ENET_AddMulticastGroup(ENET, mdns_multicast);
#endif

ENET_SetSMI(ENET, sys_clock, false);

0 comments on commit e72e457

Please sign in to comment.
You can’t perform that action at this time.