pub unsafe extern "C" fn otIp6RemoveUnsecurePort(
    aInstance: *mut otInstance,
    aPort: u16
) -> otError
Expand description

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.

@retval OT_ERROR_NONE The port was successfully removed from the allowed unsecure port list. @retval OT_ERROR_INVALID_ARGS The port is invalid (value 0 is reserved for internal use). @retval OT_ERROR_NOT_FOUND The port was not found in the unsecure port list.