mirror of
https://github.com/FreeRTOS/FreeRTOS-Plus-TCP
synced 2025-10-24 03:32:36 +08:00
Uncrustify (#730)
* uncrustify * Uncrustify: triggered by comment. * Update FreeRTOS_ARP.c * Fix whitespace changes --------- Co-authored-by: Holden <holden-zenithaerotech.com> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
#include "FreeRTOS_Routing.h"
|
||||
#include "FreeRTOS_ND.h"
|
||||
|
||||
|
||||
/** @brief When the age of an entry in the ARP table reaches this value (it counts down
|
||||
* to zero, so this is an old entry) an ARP request will be sent to see if the
|
||||
* entry is still valid and can therefore be refreshed. */
|
||||
|
||||
@@ -1003,7 +1003,6 @@
|
||||
|
||||
/* Important: tell NIC driver how many bytes must be sent */
|
||||
pxNetworkBuffer->xDataLength = uxDataLength;
|
||||
|
||||
}
|
||||
|
||||
#endif /* ipconfigUSE_NBNS == 1 || ipconfigUSE_LLMNR == 1 */
|
||||
|
||||
@@ -1607,8 +1607,8 @@ static eFrameProcessingResult_t prvProcessUDPPacket( NetworkBufferDescriptor_t *
|
||||
eReturn = eReleaseBuffer;
|
||||
}
|
||||
else if( ( pxUDPPacket->xEthernetHeader.usFrameType == ipIPv4_FRAME_TYPE ) &&
|
||||
( ipFIRST_LOOPBACK_IPv4 <= ( FreeRTOS_ntohl( pxUDPPacket->xIPHeader.ulDestinationIPAddress ) ) ) &&
|
||||
( ( FreeRTOS_ntohl( pxUDPPacket->xIPHeader.ulDestinationIPAddress ) ) < ipLAST_LOOPBACK_IPv4 ) )
|
||||
( ipFIRST_LOOPBACK_IPv4 <= ( FreeRTOS_ntohl( pxUDPPacket->xIPHeader.ulDestinationIPAddress ) ) ) &&
|
||||
( ( FreeRTOS_ntohl( pxUDPPacket->xIPHeader.ulDestinationIPAddress ) ) < ipLAST_LOOPBACK_IPv4 ) )
|
||||
{
|
||||
/* The local loopback addresses must never appear outside a host. See RFC 1122
|
||||
* section 3.2.1.3. */
|
||||
@@ -1812,9 +1812,7 @@ static eFrameProcessingResult_t prvProcessIPPacket( const IPPacket_t * pxIPPacke
|
||||
* went wrong because it will not be able to validate what it
|
||||
* receives. */
|
||||
#if ( ipconfigREPLY_TO_INCOMING_PINGS == 1 ) || ( ipconfigSUPPORT_OUTGOING_PINGS == 1 )
|
||||
{
|
||||
eReturn = ProcessICMPPacket( pxNetworkBuffer );
|
||||
}
|
||||
eReturn = ProcessICMPPacket( pxNetworkBuffer );
|
||||
#endif /* ( ipconfigREPLY_TO_INCOMING_PINGS == 1 ) || ( ipconfigSUPPORT_OUTGOING_PINGS == 1 ) */
|
||||
break;
|
||||
|
||||
|
||||
@@ -45,13 +45,13 @@
|
||||
|
||||
/* Constants defining the current version of the FreeRTOS+TCP
|
||||
* network stack. */
|
||||
#define ipFR_TCP_VERSION_NUMBER "V3.0.999"
|
||||
#define ipFR_TCP_VERSION_MAJOR 3
|
||||
#define ipFR_TCP_VERSION_MINOR 0
|
||||
#define ipFR_TCP_VERSION_NUMBER "V3.0.999"
|
||||
#define ipFR_TCP_VERSION_MAJOR 3
|
||||
#define ipFR_TCP_VERSION_MINOR 0
|
||||
/* Development builds are always version 999. */
|
||||
#define ipFR_TCP_VERSION_BUILD 999
|
||||
#define ipFR_TCP_VERSION_BUILD 999
|
||||
/* Using TCP version to support backward compatibility in the Demo files. */
|
||||
#define FREERTOS_PLUS_TCP_VERSION 10
|
||||
#define FREERTOS_PLUS_TCP_VERSION 10
|
||||
|
||||
/* Some constants defining the sizes of several parts of a packet.
|
||||
* These defines come before including the configuration header files. */
|
||||
|
||||
Reference in New Issue
Block a user