Lines Matching refs:rval

111     int                 rval;  in CreateIcmp6Socket()  local
126 rval = setsockopt(sock, IPPROTO_ICMPV6, ICMP6_FILTER, &filter, sizeof(filter)); in CreateIcmp6Socket()
127 VerifyOrDie(rval == 0, OT_EXIT_ERROR_ERRNO); in CreateIcmp6Socket()
130 rval = setsockopt(sock, IPPROTO_IPV6, IPV6_RECVPKTINFO, &kEnable, sizeof(kEnable)); in CreateIcmp6Socket()
131 VerifyOrDie(rval == 0, OT_EXIT_ERROR_ERRNO); in CreateIcmp6Socket()
134rval = setsockopt(sock, IPPROTO_RAW, IPV6_CHECKSUM, &kIpv6ChecksumOffset, sizeof(kIpv6ChecksumOffs… in CreateIcmp6Socket()
136rval = setsockopt(sock, IPPROTO_IPV6, IPV6_CHECKSUM, &kIpv6ChecksumOffset, sizeof(kIpv6ChecksumOff… in CreateIcmp6Socket()
138 VerifyOrDie(rval == 0, OT_EXIT_ERROR_ERRNO); in CreateIcmp6Socket()
141 rval = setsockopt(sock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, &kEnable, sizeof(kEnable)); in CreateIcmp6Socket()
142 VerifyOrDie(rval == 0, OT_EXIT_ERROR_ERRNO); in CreateIcmp6Socket()
144 rval = setsockopt(sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &kHopLimit, sizeof(kHopLimit)); in CreateIcmp6Socket()
145 VerifyOrDie(rval == 0, OT_EXIT_ERROR_ERRNO); in CreateIcmp6Socket()
147 rval = setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &kHopLimit, sizeof(kHopLimit)); in CreateIcmp6Socket()
148 VerifyOrDie(rval == 0, OT_EXIT_ERROR_ERRNO); in CreateIcmp6Socket()
157 int rval; in CreateNetLinkSocket() local
167 rval = bind(sock, reinterpret_cast<struct sockaddr *>(&addr), sizeof(addr)); in CreateNetLinkSocket()
168 VerifyOrDie(rval == 0, OT_EXIT_ERROR_ERRNO); in CreateNetLinkSocket()
189 ssize_t rval; in SendIcmp6Nd() local
232 rval = sendmsg(mInfraIfIcmp6Socket, &msgHeader, 0); in SendIcmp6Nd()
233 if (rval < 0) in SendIcmp6Nd()
239 if (static_cast<size_t>(rval) != iov.iov_len) in SendIcmp6Nd()
272 ssize_t rval; in Init() local
291rval = setsockopt(mInfraIfIcmp6Socket, SOL_SOCKET, SO_BINDTODEVICE, mInfraIfName, strlen(mInfraIfN… in Init()
293rval = setsockopt(mInfraIfIcmp6Socket, IPPROTO_IP, IP_BOUND_IF, &mInfraIfIndex, sizeof(mInfraIfInd… in Init()
295 VerifyOrDie(rval == 0, OT_EXIT_ERROR_ERRNO); in Init()
410 ssize_t rval; in ReceiveIcmp6Message() local
433 rval = recvmsg(mInfraIfIcmp6Socket, &msg, 0); in ReceiveIcmp6Message()
434 if (rval < 0) in ReceiveIcmp6Message()
440 bufferLength = static_cast<uint16_t>(rval); in ReceiveIcmp6Message()