net/arp: Fix IGMP multicast address computation on Nuttx network stack. This change fixes the IGMP address computation to allow multicast UDP messages. The destination address was created with the incorrect bytes of the given IPv4 address.

This commit is contained in:
Louis Mayencourt 2018-01-02 11:19:30 -06:00 committed by Gregory Nutt
parent e7db11fc55
commit aa1a068999

View File

@ -197,9 +197,9 @@ void arp_out(FAR struct net_driver_s *dev)
peth->dest[0] = g_multicast_ethaddr[0];
peth->dest[1] = g_multicast_ethaddr[1];
peth->dest[2] = g_multicast_ethaddr[2];
peth->dest[3] = ip[2] & 0x7f;
peth->dest[4] = ip[3];
peth->dest[5] = ip[4];
peth->dest[3] = ip[1] & 0x7f;
peth->dest[4] = ip[2];
peth->dest[5] = ip[3];
goto finish_header;
}