mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 17:09:51 +00:00
Add ability to configure unsecure ports to the IPv6 datagram filter. (#196)
This commit is contained in:
@@ -111,6 +111,11 @@ typedef enum ThreadError
|
||||
*/
|
||||
kThreadError_DestinationAddressFiltered = 24,
|
||||
|
||||
/**
|
||||
* The requested item could not be found.
|
||||
*/
|
||||
kThreadError_NotFound = 25,
|
||||
|
||||
kThreadError_Error = 255,
|
||||
} ThreadError;
|
||||
|
||||
|
||||
@@ -586,6 +586,40 @@ ThreadError otRemoveExternalRoute(const otIp6Prefix *aPrefix);
|
||||
*/
|
||||
ThreadError otSendServerData(void);
|
||||
|
||||
/**
|
||||
* This function adds a port to the allowed unsecured port list.
|
||||
*
|
||||
* @param[in] aPort The port value.
|
||||
*
|
||||
* @retval kThreadError_None The port was successfully added to the allowed unsecure port list.
|
||||
* @retval kThreadError_NoBufs The unsecure port list is full.
|
||||
*
|
||||
*/
|
||||
ThreadError otAddUnsecurePort(uint16_t aPort);
|
||||
|
||||
/**
|
||||
* This function removes a port from the allowed unsecure port list.
|
||||
*
|
||||
* @param[in] aPort The port value.
|
||||
*
|
||||
* @retval kThreadError_None The port was successfully removed from the allowed unsecure port list.
|
||||
* @retval kThreadError_NotFound The port was not found in the unsecure port list.
|
||||
*
|
||||
*/
|
||||
ThreadError otRemoveUnsecurePort(uint16_t aPort);
|
||||
|
||||
/**
|
||||
* This function returns a pointer to the unsecure port list.
|
||||
*
|
||||
* @note Port value 0 is used to indicate an invalid entry.
|
||||
*
|
||||
* @param[out] aNumEntries The number of entries in the list.
|
||||
*
|
||||
* @returns A pointer to the unsecure port list.
|
||||
*
|
||||
*/
|
||||
const uint16_t *otGetUnsecurePorts(uint8_t *aNumEntries);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user