Skip to content

Commit 754c05f

Browse files
committed
Fix Zynq network interface incoming packet filtering by correcting endianness
1 parent 4b81c00 commit 754c05f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/portable/NetworkInterface/Zynq/x_emacpsif_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ BaseType_t xMayAcceptPacket( uint8_t * pucEthernetBuffer )
439439

440440
/* Ensure that the incoming packet is not fragmented (only outgoing packets
441441
* can be fragmented) as these are the only handled IP frames currently. */
442-
if( ( pxIPHeader->usFragmentOffset & FreeRTOS_ntohs( ipFRAGMENT_OFFSET_BIT_MASK ) ) != 0U )
442+
if( ( pxIPHeader->usFragmentOffset & ipFRAGMENT_OFFSET_BIT_MASK ) != 0U )
443443
{
444444
return pdFALSE;
445445
}

0 commit comments

Comments
 (0)