mirror of
https://github.com/espressif/openthread.git
synced 2026-08-15 07:07:46 +00:00
[ncp] fix clearing unsecure ports (#3022)
This commit is contained in:
committed by
Jonathan Hui
parent
0d0c04ece2
commit
c573dafe8e
@@ -455,6 +455,10 @@ otError otIp6AddUnsecurePort(otInstance *aInstance, uint16_t aPort);
|
||||
/**
|
||||
* This function removes a port from the allowed unsecure port list.
|
||||
*
|
||||
* @note This function removes @p aPort by overwriting @p aPort with the element after @p aPort in the internal port
|
||||
* list. Be careful when calling otIp6GetUnsecurePorts() followed by otIp6RemoveUnsecurePort() to remove unsecure
|
||||
* ports.
|
||||
*
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
* @param[in] aPort The port value.
|
||||
*
|
||||
@@ -464,6 +468,14 @@ otError otIp6AddUnsecurePort(otInstance *aInstance, uint16_t aPort);
|
||||
*/
|
||||
otError otIp6RemoveUnsecurePort(otInstance *aInstance, uint16_t aPort);
|
||||
|
||||
/**
|
||||
* This function removes all ports from the allowed unsecure port list.
|
||||
*
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
*
|
||||
*/
|
||||
void otIp6RemoveAllUnsecurePorts(otInstance *aInstance);
|
||||
|
||||
/**
|
||||
* This function returns a pointer to the unsecure port list.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user