int rv = _connection_libnet_check_profile_privilege();
if (rv == CONNECTION_ERROR_PERMISSION_DENIED) {
- CONN_UNLOCK;
- return rv;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return rv; //LCOV_EXCL_LINE
} else if (rv != CONNECTION_ERROR_NONE) {
CONNECTION_LOG(CONNECTION_ERROR, "Failed to create profile"); //LCOV_EXCL_LINE
- CONN_UNLOCK;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
net_profile_info_t *profile_info = g_try_malloc0(sizeof(net_profile_info_t));
if (profile_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
if (type == CONNECTION_PROFILE_TYPE_CELLULAR) {
*cloned_profile = g_try_malloc0(sizeof(net_profile_info_t));
if (*cloned_profile == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
memcpy(*cloned_profile, origin_profile, sizeof(net_profile_info_t));
char *prof_id = strrchr(profile_info->ProfileName, '/');
if (prof_id == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
prof_id++;
*profile_id = g_strdup(prof_id);
if (*profile_id == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
case NET_DEVICE_BLUETOOTH: {
char *bt_name = strrchr(profile_info->ProfileName, '/');
if (bt_name == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
bt_name++;
*profile_name = g_strdup(profile_info->ProfileInfo.Mesh.essid);
break;
default:
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
if (*profile_name == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
*type = CONNECTION_PROFILE_TYPE_MESH;
break;
default:
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid profile type");
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid profile type"); //LCOV_EXCL_LINE
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
*interface_name = g_strdup(net_info->DevName);
if (*interface_name == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
rv = net_get_profile_info(NULL, profile_info->ProfileName, &profile_info_local);
if (rv == NET_ERR_ACCESS_DENIED) {
CONNECTION_LOG(CONNECTION_ERROR, "Access denied"); //LCOV_EXCL_LINE
- CONN_UNLOCK;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
return CONNECTION_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
} else if (rv != NET_ERR_NONE) {
CONNECTION_LOG(CONNECTION_ERROR, "Failed to get profile information"); //LCOV_EXCL_LINE
- CONN_UNLOCK;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV4)
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV4) {
address_family);
} else {
if (net_get_preferred_ipv6_address(net_info->ProfileName, ip_address) != NET_ERR_NONE) {
- CONNECTION_LOG(CONNECTION_ERROR, "Failed to get preferred ipv6 address");
- *ip_address = __profile_convert_ip_to_string(&net_info->IpAddr6,
+ CONNECTION_LOG(CONNECTION_ERROR, "Failed to get preferred ipv6 address"); //LCOV_EXCL_LINE
+ *ip_address = __profile_convert_ip_to_string(&net_info->IpAddr6, //LCOV_EXCL_LINE
address_family);
}
}
if (*ip_address == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV6) {
- CONNECTION_LOG(CONNECTION_ERROR,
+ CONNECTION_LOG(CONNECTION_ERROR, //LCOV_EXCL_LINE
"Please uses connection_profile_get_prefix_length()");
- CONN_UNLOCK;
- return CONNECTION_ERROR_NOT_SUPPORTED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
*subnet_mask = __profile_convert_ip_to_string(&net_info->SubnetMask,
address_family);
if (*subnet_mask == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV6)
&net_info->GatewayAddr, address_family);
if (*gateway_address == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
CONNECTION_LOG(CONNECTION_INFO, "IP Config %d, DHCP Server Address %s",
address_family);
if (*dhcp_server == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
CONNECTION_LOG(CONNECTION_INFO, "Lease duration : %d",
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV4)
address_family);
if (*dns_address == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
//LCOV_EXCL_START
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
*proxy_address = g_strdup(net_info->ProxyAddr);
if (*proxy_address == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV4)
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV6) {
if (ip_address == NULL)
net_info->IpAddr.Data.Ipv4.s_addr = 0;
else if (inet_pton(AF_INET, ip_address, &net_info->IpAddr.Data.Ipv4) < 1) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
}
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV6) {
- CONNECTION_LOG(CONNECTION_ERROR,
+ CONNECTION_LOG(CONNECTION_ERROR, //LCOV_EXCL_LINE
"Please uses connection_profile_set_prefix_length()");
- CONN_UNLOCK;
- return CONNECTION_ERROR_NOT_SUPPORTED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
}
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (subnet_mask == NULL)
net_info->SubnetMask.Data.Ipv4.s_addr = 0;
else if (inet_pton(AF_INET, subnet_mask , &net_info->SubnetMask.Data.Ipv4) < 1) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
net_info->PrefixLen = __profile_convert_netmask_to_prefix_len(subnet_mask);
if (net_info->PrefixLen <= 0 || net_info->PrefixLen > 31) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid Prefix length: %d", net_info->PrefixLen);
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid Prefix length: %d", net_info->PrefixLen); //LCOV_EXCL_LINE
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV6) {
if (gateway_address == NULL)
net_info->GatewayAddr.Data.Ipv4.s_addr = 0;
else if (inet_pton(AF_INET, gateway_address, &(net_info->GatewayAddr.Data.Ipv4)) < 1) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
}
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV6) {
if (dns_address == NULL)
net_info->DnsAddr[order-1].Data.Ipv4.s_addr = 0;
else if (inet_pton(AF_INET, dns_address, &(net_info->DnsAddr[order-1].Data.Ipv4)) < 1) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
if (net_info->DnsCount < order)
net_info->DnsCount = order;
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
switch (type) {
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (proxy_address == NULL)
return CONNECTION_ERROR_NONE;
}
- CONN_UNLOCK;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
}
if (_connection_libnet_remove_from_profile_cb_list(profile) != true) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
*essid = g_strdup(profile_info->ProfileInfo.Mesh.essid);
if (*essid == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
*bssid = g_strdup(profile_info->ProfileInfo.Mesh.bssid);
if (*bssid == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
}
if (profile_info->Favourite) {
- *required = false;
- CONN_UNLOCK;
- return CONNECTION_ERROR_NONE;
+ *required = false; //LCOV_EXCL_LINE
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_NONE; //LCOV_EXCL_LINE
}
if (profile_info->profile_type == NET_DEVICE_WIFI)
if (*type == CONNECTION_CELLULAR_SERVICE_TYPE_UNKNOWN) {
CONNECTION_LOG(CONNECTION_ERROR, "Invalid service type Passed"); //LCOV_EXCL_LINE
- CONN_UNLOCK;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (profile_info->profile_type != NET_DEVICE_CELLULAR) {
CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE
- CONN_UNLOCK;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
*apn = g_strdup(profile_info->ProfileInfo.Pdp.Apn);
if (*apn == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
*user_name = g_strdup(profile_info->ProfileInfo.Pdp.AuthInfo.UserName);
if (*user_name == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
*password = g_strdup(profile_info->ProfileInfo.Pdp.AuthInfo.Password);
if (*password == NULL) {
g_free(*user_name); //LCOV_EXCL_LINE
- CONN_UNLOCK;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
*home_url = g_strdup(profile_info->ProfileInfo.Pdp.HomeURL);
if (*home_url == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OUT_OF_MEMORY;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE
}
CONN_UNLOCK;
net_profile_info_t *profile_info = profile;
*state = _profile_convert_to_cp_state(profile_info->ProfileState6);
- if (*state < 0) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
- }
CONN_UNLOCK;
return CONNECTION_ERROR_NONE;
address_family != CONNECTION_ADDRESS_FAMILY_IPV6) ||
(type != CONNECTION_DNS_CONFIG_TYPE_STATIC &&
type != CONNECTION_DNS_CONFIG_TYPE_DYNAMIC)) {
- CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
- CONN_UNLOCK;
- return CONNECTION_ERROR_INVALID_PARAMETER;
+ CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
net_dns_config_type_t *profileType = NULL;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV4) {
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV4)
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV4) {
net_profile_info_t *profile_info = profile;
net_dev_info_t *net_info = __profile_get_net_info(profile_info);
if (net_info == NULL) {
- CONN_UNLOCK;
- return CONNECTION_ERROR_OPERATION_FAILED;
+ CONN_UNLOCK; //LCOV_EXCL_LINE
+ return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (address_family == CONNECTION_ADDRESS_FAMILY_IPV4)