Skip to content

Commit 1ceb4f0

Browse files
committed
Update according to devIntegration
1 parent 1561608 commit 1ceb4f0

File tree

6 files changed

+1
-863
lines changed

6 files changed

+1
-863
lines changed

source/FreeRTOS_Sockets.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@
5757
#include "tcp_mem_stats.h"
5858
#endif
5959

60-
#if ( ipconfigUSE_TCP_MEM_STATS != 0 )
61-
#include "tcp_mem_stats.h"
62-
#endif
63-
6460
/* The ItemValue of the sockets xBoundSocketListItem member holds the socket's
6561
* port number. */
6662
/** @brief Set the port number for the socket in the xBoundSocketListItem. */

source/FreeRTOS_UDP_IP.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ BaseType_t xProcessReceivedUDPPacket( NetworkBufferDescriptor_t * pxNetworkBuffe
150150
/* MISRA Ref 11.3.1 [Misaligned access] */
151151
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-113 */
152152
/* coverity[misra_c_2012_rule_11_3_violation] */
153-
pxUDPPacket = ( ( UDPPacket_t * ) pxNetworkBuffer->pucEthernetBuffer );
153+
const UDPPacket_t * pxUDPPacket = ( ( const UDPPacket_t * ) pxNetworkBuffer->pucEthernetBuffer );
154154

155155
switch( pxUDPPacket->xEthernetHeader.usFrameType )
156156
{

source/include/FreeRTOS_IP_Private.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,6 @@ extern struct xNetworkInterface * pxNetworkInterfaces;
371371
* rather than duplicated in its own variable. */
372372
#define ipLOCAL_MAC_ADDRESS ( xDefaultPartUDPPacketHeader.ucBytes )
373373

374-
/* The loopback address block is defined as part of rfc5735 */
375-
#define ipLOOPBACK_ADDRESS ( FreeRTOS_inet_addr_quick( 127, 0, 0, 0 ) )
376-
#define ipLOOPBACK_NETMASK ( FreeRTOS_inet_addr_quick( 255, 0, 0, 0 ) )
377-
378374
/* ICMP packets are sent using the same function as UDP packets. The port
379375
* number is used to distinguish between the two, as 0 is an invalid UDP port. */
380376
#define ipPACKET_CONTAINS_ICMP_DATA ( 0 )

0 commit comments

Comments
 (0)