mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 02:07:48 -04:00
Misc changes (#183)
This commit is contained in:
parent
07cf5e07e4
commit
a7fec906a4
3 changed files with 5 additions and 5 deletions
|
@ -1640,11 +1640,11 @@ eFrameProcessingResult_t eReturn = eProcessBuffer;
|
|||
if( pxIPPacket->xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_UDP )
|
||||
{
|
||||
ProtocolPacket_t *pxProtPack;
|
||||
uint16_t *pusChecksum;
|
||||
const uint16_t *pusChecksum;
|
||||
|
||||
/* pxProtPack will point to the offset were the protocols begin. */
|
||||
pxProtPack = ipPOINTER_CAST( ProtocolPacket_t *, &( pxNetworkBuffer->pucEthernetBuffer[ uxHeaderLength - ipSIZE_OF_IPv4_HEADER ] ) );
|
||||
pusChecksum = ( uint16_t * ) ( &( pxProtPack->xUDPPacket.xUDPHeader.usChecksum ) );
|
||||
pusChecksum = ( const uint16_t * ) ( &( pxProtPack->xUDPPacket.xUDPHeader.usChecksum ) );
|
||||
if( *pusChecksum == ( uint16_t ) 0U )
|
||||
{
|
||||
#if( ipconfigHAS_PRINTF != 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue