Skip to content

Commit 65df7af

Browse files
author
Emil Popov
committed
Exposes pcLOCAL_ALL_NODES_MULTICAST_IP so that it can be re-used by the user
1 parent e710ebe commit 65df7af

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

source/FreeRTOS_ND.c

+1-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@
7474
#define ndMAX_CACHE_AGE_BEFORE_NEW_ND_SOLICITATION ( 3U )
7575

7676
/** @brief All nodes on the local network segment: IP address. */
77-
/* MISRA Ref 8.9.1 [File scoped variables] */
78-
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-89 */
79-
/* coverity[misra_c_2012_rule_8_9_violation] */
80-
static const uint8_t pcLOCAL_ALL_NODES_MULTICAST_IP[ ipSIZE_OF_IPv6_ADDRESS ] = { 0xffU, 0x02U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x01U }; /* ff02::1 */
77+
const uint8_t pcLOCAL_ALL_NODES_MULTICAST_IP[ ipSIZE_OF_IPv6_ADDRESS ] = { 0xffU, 0x02U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x01U }; /* ff02::1 */
8178
/** @brief All nodes on the local network segment: MAC address. */
8279
const uint8_t pcLOCAL_ALL_NODES_MULTICAST_MAC[ ipMAC_ADDRESS_LENGTH_BYTES ] = { 0x33U, 0x33U, 0x00U, 0x00U, 0x00U, 0x01U };
8380

source/include/FreeRTOS_ND.h

+1
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@
204204
void FreeRTOS_PrintNDCache( void );
205205
#endif
206206

207+
extern const uint8_t pcLOCAL_ALL_NODES_MULTICAST_IP[ ipSIZE_OF_IPv6_ADDRESS ];
207208
extern const uint8_t pcLOCAL_ALL_NODES_MULTICAST_MAC[ ipMAC_ADDRESS_LENGTH_BYTES ];
208209
#endif /* ipconfigUSE_IPv6 != 0 */
209210

0 commit comments

Comments
 (0)