Skip to content

Commit 0ab46d1

Browse files
Merge pull request #1229 from tony-josi-aws/fix_zynq_packet_filtering_wrt_endianness
Fix Zynq network interface incoming packet filtering by correcting endianness
2 parents 4b81c00 + 6d18eb3 commit 0ab46d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
}

source/portable/NetworkInterface/xilinx_ultrascale/x_emacpsif_dma.c

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

406406
/* Ensure that the incoming packet is not fragmented (only outgoing packets
407407
* can be fragmented) as these are the only handled IP frames currently. */
408-
if( ( pxIPHeader->usFragmentOffset & FreeRTOS_ntohs( ipFRAGMENT_OFFSET_BIT_MASK ) ) != 0U )
408+
if( ( pxIPHeader->usFragmentOffset & ipFRAGMENT_OFFSET_BIT_MASK ) != 0U )
409409
{
410410
return pdFALSE;
411411
}

0 commit comments

Comments
 (0)