File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -354,6 +354,8 @@ static BaseType_t xIPTaskInitialised = pdFALSE;
354354
355355/*-----------------------------------------------------------*/
356356
357+ #include "random.h"
358+
357359/* Coverity wants to make pvParameters const, which would make it incompatible. Leave the
358360 * function signature as is. */
359361
@@ -434,6 +436,8 @@ static void prvIPTask( void * pvParameters )
434436
435437 iptraceNETWORK_EVENT_RECEIVED ( xReceivedEvent .eEventType );
436438
439+ vAddBytesToPool ( xReceivedEvent .eEventType );
440+
437441 switch ( xReceivedEvent .eEventType )
438442 {
439443 case eNetworkDownEvent :
Original file line number Diff line number Diff line change 14981498 uxIndex += ( size_t ) ucLen ;
14991499 }
15001500 }
1501+
1502+ #if ( ipconfigUSE_TCP_WIN == 0 )
1503+ /* Avoid compiler warnings when TCP window is not used. */
1504+ ( void ) xHasSYNFlag ;
1505+ #endif
1506+
15011507 return uxIndex ;
15021508 }
15031509 /*-----------------------------------------------------------*/
25952601 TCPHeader_t * pxTCPHeader = & pxProtocolHeaders -> xTCPHeader ;
25962602 const TCPWindow_t * pxTCPWindow = & pxSocket -> u .xTCP .xTCPWindow ;
25972603 UBaseType_t uxOptionsLength = pxTCPWindow -> ucOptionLength ;
2598- /* memcpy() helper variables for MISRA Rule 21.15 compliance*/
2599- const void * pvCopySource ;
2600- void * pvCopyDest ;
26012604
26022605 #if ( ipconfigUSE_TCP_WIN == 1 )
2606+ /* memcpy() helper variables for MISRA Rule 21.15 compliance*/
2607+ const void * pvCopySource ;
2608+ void * pvCopyDest ;
2609+
26032610 if ( uxOptionsLength != 0U )
26042611 {
26052612 /* TCP options must be sent because a packet which is out-of-order
Original file line number Diff line number Diff line change 4949
5050#ifndef ipconfigTCP_MEM_STATS_MAX_ALLOCATION
5151 #define ipconfigTCP_MEM_STATS_MAX_ALLOCATION 128u
52- #pragma warning "ipconfigTCP_MEM_STATS_MAX_ALLOCATION undefined?"
52+ // #pragma warning "ipconfigTCP_MEM_STATS_MAX_ALLOCATION undefined?"
5353#endif
5454
5555#if ( ipconfigUSE_TCP_MEM_STATS != 0 )
You can’t perform that action at this time.
0 commit comments