Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/FreeRTOS_DNS_Parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
uint16_t x;
BaseType_t xReturn = pdTRUE;
uint32_t ulIPAddress = 0U;
BaseType_t xDNSHookReturn;
BaseType_t xDNSHookReturn = 0U;

( void ) memset( &( xSet ), 0, sizeof( xSet ) );
xSet.usPortNumber = usPort;
Expand Down
2 changes: 1 addition & 1 deletion source/FreeRTOS_IPv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

/* Map the buffer onto a IP-Packet struct to easily access the
* fields of the IP packet. */
const IPPacket_t * const pxIPPacket = ( ( const IPPacket_t * const ) pvEthernetBuffer );
const IPPacket_t * const pxIPPacket = ( ( const IPPacket_t *) pvEthernetBuffer );

DEBUG_DECLARE_TRACE_VARIABLE( BaseType_t, xLocation, 0 );

Expand Down
4 changes: 2 additions & 2 deletions source/FreeRTOS_IPv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ const struct xIPv6_Address FreeRTOS_in6addr_loopback = { { 0U, 0U, 0U, 0U, 0U, 0
size_t uxMinimumLength;
size_t uxExtHeaderLength = 0;
const IPExtHeader_IPv6_t * pxExtHeader = NULL;
const uint8_t * const pucEthernetBuffer = ( const uint8_t * const ) pvEthernetBuffer;
const uint8_t * const pucEthernetBuffer = ( const uint8_t *) pvEthernetBuffer;

/* Map the buffer onto a IPv6-Packet struct to easily access the
* fields of the IPv6 packet. */
const IPPacket_IPv6_t * const pxIPv6Packet = ( const IPPacket_IPv6_t * const ) pucEthernetBuffer;
const IPPacket_IPv6_t * const pxIPv6Packet = ( const IPPacket_IPv6_t *) pucEthernetBuffer;

DEBUG_DECLARE_TRACE_VARIABLE( BaseType_t, xLocation, 0 );

Expand Down
21 changes: 0 additions & 21 deletions source/FreeRTOS_ND.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@
/** @brief The ND cache. */
static NDCacheRow_t xNDCache[ ipconfigND_CACHE_ENTRIES ];

/** @brief The time at which the last unsolicited ND was sent. Unsolicited NDs are used
* to ensure ND tables are up to date and to detect IP address conflicts. */
/* MISRA Ref 8.9.1 [File scoped variables] */
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-89 */
/* coverity[misra_c_2012_rule_8_9_violation] */
static TickType_t xLastUnsolicitedNDTime = 0U;

/*-----------------------------------------------------------*/

Expand Down Expand Up @@ -1405,19 +1399,4 @@
}

/*-----------------------------------------------------------*/

/**
* @brief Send an unsolicited ND packet to allow this node to announce the IP-MAC
* mapping to the entire network.
*/
void vNDSendUnsolicited( void )
{
/* Setting xLastUnsolicitedNDTime to 0 will force an unsolicited ND the next
* time vNDAgeCache() is called. */
xLastUnsolicitedNDTime = ( TickType_t ) 0;

/* Let the IP-task call vARPAgeCache(). */
( void ) xSendEventToIPTask( eNDTimerEvent );
}
/*-----------------------------------------------------------*/
#endif /* ipconfigUSE_IPv6 */
2 changes: 2 additions & 0 deletions source/FreeRTOS_RA.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,14 @@

case ndICMP_MTU_OPTION: /* 5 */
{
#if ipconfigHAS_PRINTF == 1
uint32_t ulMTU;
( void ) ulMTU;

/* ulChar2u32 returns host-endian numbers. */
ulMTU = ulChar2u32( &( pucBytes[ uxIndex + 4U ] ) );
FreeRTOS_printf( ( "RA: MTU = %u\n", ( unsigned int ) ulMTU ) );
#endif /* ipconfigHAS_PRINTF == 1 */
}
break;

Expand Down
Loading