diff --git a/source/FreeRTOS_IP.c b/source/FreeRTOS_IP.c index 49df39e27..c6fd21cc1 100644 --- a/source/FreeRTOS_IP.c +++ b/source/FreeRTOS_IP.c @@ -637,7 +637,7 @@ TaskHandle_t FreeRTOS_GetIPTaskHandle( void ) * * @param pxEndPoint The end-point which goes up. */ -void vIPNetworkUpCalls( NetworkEndPoint_t * pxEndPoint ) +void vIPNetworkUpCalls( struct xNetworkEndPoint * pxEndPoint ) { pxEndPoint->bits.bEndPointUp = pdTRUE_UNSIGNED; diff --git a/source/FreeRTOS_IP_Utils.c b/source/FreeRTOS_IP_Utils.c index ba895859b..f25b10bf7 100644 --- a/source/FreeRTOS_IP_Utils.c +++ b/source/FreeRTOS_IP_Utils.c @@ -816,7 +816,7 @@ BaseType_t xIsCallingFromIPTask( void ) /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-89 */ /* coverity[misra_c_2012_rule_8_9_violation] */ /* coverity[single_use] */ -void prvProcessNetworkDownEvent( NetworkInterface_t * pxInterface ) +void prvProcessNetworkDownEvent( struct xNetworkInterface * pxInterface ) { NetworkEndPoint_t * pxEndPoint; diff --git a/source/FreeRTOS_IPv4.c b/source/FreeRTOS_IPv4.c index ca88419ea..05958979d 100644 --- a/source/FreeRTOS_IPv4.c +++ b/source/FreeRTOS_IPv4.c @@ -219,9 +219,9 @@ BaseType_t xIsIPv4Multicast( uint32_t ulIPAddress ) * * @return Whether the packet should be processed or dropped. */ -eFrameProcessingResult_t prvAllowIPPacketIPv4( const IPPacket_t * const pxIPPacket, - const NetworkBufferDescriptor_t * const pxNetworkBuffer, - UBaseType_t uxHeaderLength ) +enum eFrameProcessingResult prvAllowIPPacketIPv4( const struct xIP_PACKET * const pxIPPacket, + const struct xNETWORK_BUFFER * const pxNetworkBuffer, + UBaseType_t uxHeaderLength ) { eFrameProcessingResult_t eReturn = eProcessBuffer; @@ -417,7 +417,7 @@ eFrameProcessingResult_t prvAllowIPPacketIPv4( const IPPacket_t * const pxIPPack * * @return Either 'eProcessBuffer' or 'eReleaseBuffer' */ -eFrameProcessingResult_t prvCheckIP4HeaderOptions( NetworkBufferDescriptor_t * const pxNetworkBuffer ) +enum eFrameProcessingResult prvCheckIP4HeaderOptions( struct xNETWORK_BUFFER * const pxNetworkBuffer ) { eFrameProcessingResult_t eReturn = eProcessBuffer; diff --git a/source/include/FreeRTOS_IP_Private.h b/source/include/FreeRTOS_IP_Private.h index 029d50880..1a7fb567e 100644 --- a/source/include/FreeRTOS_IP_Private.h +++ b/source/include/FreeRTOS_IP_Private.h @@ -57,8 +57,8 @@ #define ipFOREVER() 1 #endif -/* Forward declaration of 'NetworkEndPoint_t'. */ -typedef struct xNetworkEndPoint NetworkEndPoint_t; +/* Forward declaration. */ +struct xNetworkEndPoint; typedef enum eFrameProcessingResult { @@ -889,7 +889,7 @@ BaseType_t xIsCallingFromIPTask( void ); #endif /* ipconfigSUPPORT_SELECT_FUNCTION */ /* Send the network-up event and start the ARP timer. */ -void vIPNetworkUpCalls( NetworkEndPoint_t * pxEndPoint ); +void vIPNetworkUpCalls( struct xNetworkEndPoint * pxEndPoint ); /* *INDENT-OFF* */ #ifdef __cplusplus diff --git a/source/include/FreeRTOS_IP_Utils.h b/source/include/FreeRTOS_IP_Utils.h index 226e6811a..f34255d8d 100644 --- a/source/include/FreeRTOS_IP_Utils.h +++ b/source/include/FreeRTOS_IP_Utils.h @@ -65,8 +65,8 @@ #endif /* *INDENT-ON* */ -/* Forward declaration of 'NetworkInterface_t'. */ -typedef struct xNetworkInterface NetworkInterface_t; +/* Forward declaration. */ +struct xNetworkInterface; #if ( ipconfigUSE_DHCP != 0 ) @@ -101,7 +101,7 @@ void vPreCheckConfigs( void ); * @brief Called to create a network connection when the stack is first * started, or when the network connection is lost. */ -void prvProcessNetworkDownEvent( NetworkInterface_t * pxInterface ); +void prvProcessNetworkDownEvent( struct xNetworkInterface * pxInterface ); /* *INDENT-OFF* */ #ifdef __cplusplus diff --git a/source/include/FreeRTOS_IPv4.h b/source/include/FreeRTOS_IPv4.h index 457b01303..eef778e29 100644 --- a/source/include/FreeRTOS_IPv4.h +++ b/source/include/FreeRTOS_IPv4.h @@ -43,9 +43,9 @@ /* *INDENT-ON* */ /* Forward declarations. */ -typedef struct xNETWORK_BUFFER NetworkBufferDescriptor_t; -typedef enum eFrameProcessingResult eFrameProcessingResult_t; -typedef struct xIP_PACKET IPPacket_t; +struct xNETWORK_BUFFER; +enum eFrameProcessingResult; +struct xIP_PACKET; #define ipSIZE_OF_IPv4_HEADER 20U #define ipSIZE_OF_IPv4_ADDRESS 4U @@ -89,12 +89,12 @@ uint32_t FreeRTOS_GetIPAddress( void ); BaseType_t xIsIPv4Multicast( uint32_t ulIPAddress ); /* The function 'prvAllowIPPacket()' checks if a packets should be processed. */ -eFrameProcessingResult_t prvAllowIPPacketIPv4( const IPPacket_t * const pxIPPacket, - const NetworkBufferDescriptor_t * const pxNetworkBuffer, - UBaseType_t uxHeaderLength ); +enum eFrameProcessingResult prvAllowIPPacketIPv4( const struct xIP_PACKET * const pxIPPacket, + const struct xNETWORK_BUFFER * const pxNetworkBuffer, + UBaseType_t uxHeaderLength ); /* Check if the IP-header is carrying options. */ -eFrameProcessingResult_t prvCheckIP4HeaderOptions( NetworkBufferDescriptor_t * const pxNetworkBuffer ); +enum eFrameProcessingResult prvCheckIP4HeaderOptions( struct xNETWORK_BUFFER * const pxNetworkBuffer ); /* *INDENT-OFF* */