File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -310,8 +310,8 @@ static TickType_t xLastGratuitousARPTime = 0U;
310310
311311 /* Make sure target MAC address is either ff:ff:ff:ff:ff:ff or 00:00:00:00:00:00 and senders MAC
312312 * address is not matching with the endpoint MAC address. */
313- if ( ( ( memcmp ( & ( pxARPHeader -> xTargetHardwareAddress ) , xBroadcastMACAddress .ucBytes , ipMAC_ADDRESS_LENGTH_BYTES ) == 0 ) ||
314- ( ( memcmp ( & ( pxARPHeader -> xTargetHardwareAddress ) , xGARPTargetAddress .ucBytes , ipMAC_ADDRESS_LENGTH_BYTES ) == 0 ) ) ) &&
313+ if ( ( ( memcmp ( ( const void * ) pxARPHeader -> xTargetHardwareAddress . ucBytes , xBroadcastMACAddress .ucBytes , ipMAC_ADDRESS_LENGTH_BYTES ) == 0 ) ||
314+ ( ( memcmp ( ( const void * ) pxARPHeader -> xTargetHardwareAddress . ucBytes , xGARPTargetAddress .ucBytes , ipMAC_ADDRESS_LENGTH_BYTES ) == 0 ) ) ) &&
315315 ( memcmp ( ( void * ) pxTargetEndPoint -> xMACAddress .ucBytes , ( pxARPHeader -> xSenderHardwareAddress .ucBytes ), ipMAC_ADDRESS_LENGTH_BYTES ) != 0 ) )
316316 {
317317 MACAddress_t xHardwareAddress ;
You can’t perform that action at this time.
0 commit comments