{
OIC_LOG(DEBUG, TAG, "IN");
- VERIFY_NON_NULL(dataList, TAG, "Data list is null");
+ VERIFY_NON_NULL_VOID(dataList, TAG, "Data list is null");
if (*dataList)
{
}
node->remoteAddress= clientAddress;
+ node->mtuSize = 0;
node->next = NULL;
if (*clientList == NULL) // Empty list
return CA_STATUS_OK;
}
+uint16_t CAClientInfoGetMTUSize(LEClientInfoList *clientList,
+ const char *clientAddress)
+{
+ OIC_LOG(DEBUG, TAG, "IN");
+
+ LEClientInfoList *temp = clientList;
+ while (temp)
+ {
+ if (!strcasecmp(temp->remoteAddress, clientAddress))
+ {
+ return temp->mtuSize;
+ }
+ temp = temp->next;
+ }
+
+ OIC_LOG(DEBUG, TAG, "OUT");
+ return 0;
+}
+
+CAResult_t CAClientInfoUpdateMTUSize(LEClientInfoList *clientList,
+ const char *clientAddress,uint16_t mtu_size)
+{
+ OIC_LOG(DEBUG, TAG, "IN");
+
+ LEClientInfoList *temp = clientList;
+ while (temp)
+ {
+ if (!strcasecmp(temp->remoteAddress, clientAddress))
+ {
+ temp->mtuSize = mtu_size;
+ return CA_STATUS_OK;
+ }
+ temp = temp->next;
+ }
+
+ OIC_LOG(DEBUG, TAG, "OUT");
+ return CA_STATUS_FAILED;
+}
+
CAResult_t CAIsLEClientInfoInList(LEClientInfoList *clientList,
const char *clientAddress)
{