Skip to content

Commit

Permalink
eth: eth_mcux: Register mDNS multicast address
Browse files Browse the repository at this point in the history
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 27, 2019
1 parent c3ccbbb commit e72e457
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/ethernet/eth_mcux.c
Expand Up @@ -787,6 +787,10 @@ static int eth_0_init(struct device *dev)
#if defined(CONFIG_PTP_CLOCK_MCUX) #if defined(CONFIG_PTP_CLOCK_MCUX)
u8_t ptp_multicast[6] = { 0x01, 0x80, 0xC2, 0x00, 0x00, 0x0E }; u8_t ptp_multicast[6] = { 0x01, 0x80, 0xC2, 0x00, 0x00, 0x0E };
#endif #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) #if defined(CONFIG_PTP_CLOCK_MCUX)
ts_tx_rd = 0; ts_tx_rd = 0;
Expand Down Expand Up @@ -844,6 +848,9 @@ static int eth_0_init(struct device *dev)
ENET_Ptp1588Configure(ENET, &context->enet_handle, ENET_Ptp1588Configure(ENET, &context->enet_handle,
&context->ptp_config); &context->ptp_config);
#endif #endif
#if defined(CONFIG_MDNS_RESPONDER) || defined(CONFIG_MDNS_RESOLVER)
ENET_AddMulticastGroup(ENET, mdns_multicast);
#endif


ENET_SetSMI(ENET, sys_clock, false); ENET_SetSMI(ENET, sys_clock, false);


Expand Down

0 comments on commit e72e457

Please sign in to comment.