Lines Matching refs:ret
221 int ret;
230 if ((ret = recv(mSock, response, sizeof(*response), 0)) < 0) {
236 LOG_HEX("netlink msg resp", reinterpret_cast<char*>(response), ret);
238 ret = validateResponse(*response, ret);
240 if (ret < 0)
241 ALOGE("netlink response contains error (%s)", strerror(-ret));
242 return ret;
326 int ret;
328 if ((ret = fillXfrmSaId(direction, localAddress, remoteAddress, INVALID_SPI, &saInfo)) < 0) {
329 return ret;
343 ret = allocateSpi(saInfo, minSpi, maxSpi, reinterpret_cast<uint32_t*>(outSpi), sock);
344 if (ret < 0) {
349 return ret;
376 int ret;
378 if ((ret = fillXfrmSaId(direction, localAddress, remoteAddress, spi, &saInfo)) < 0) {
379 return ret;
409 ret = createTransportModeSecurityAssociation(saInfo, sock);
410 if (ret < 0) {
412 return ret; // something went wrong creating the SA
431 int ret;
433 if ((ret = fillXfrmSaId(direction, localAddress, remoteAddress, spi, &saId)) < 0) {
434 return ret;
444 ret = deleteSecurityAssociation(saId, sock);
445 if (ret < 0) {
447 return ret; // something went wrong deleting the SA
450 return ret;
703 int spi, ret;
707 ret = sock.sendMessage(XFRM_MSG_ALLOCSPI, NETLINK_REQUEST_FLAGS, 0, iov, iovLen);
710 if (ret == -ENOENT)
713 if (ret == 0) {
718 ALOGE("SPI Allocation Failed with error %d", ret);
721 return ret;
725 return ret;