Lines Matching refs:rv
85 int rv; in openNetlinkSocket() local
88 rv = setsockopt(fd, SOL_NETLINK, NETLINK_CAP_ACK, &on, sizeof(on)); in openNetlinkSocket()
89 if (rv) ALOGE("setsockopt(fd, SOL_NETLINK, NETLINK_CAP_ACK, %d)", on); in openNetlinkSocket()
92 rv = bind(fd, (const struct sockaddr*)&KERNEL_NLADDR, sizeof(KERNEL_NLADDR)); in openNetlinkSocket()
93 if (rv) { in openNetlinkSocket()
100 rv = connect(fd, (const struct sockaddr*)&KERNEL_NLADDR, sizeof(KERNEL_NLADDR)); in openNetlinkSocket()
101 if (rv) { in openNetlinkSocket()
118 const int rv = recv(fd, &resp, sizeof(resp), MSG_TRUNC); in processNetlinkResponse() local
120 if (rv == -1) { in processNetlinkResponse()
126 if (rv < (int)NLMSG_SPACE(sizeof(struct nlmsgerr))) { in processNetlinkResponse()
127 ALOGE("recv() returned short packet: %d", rv); in processNetlinkResponse()
131 if (resp.h.nlmsg_len != (unsigned)rv) { in processNetlinkResponse()
132 ALOGE("recv() returned invalid header length: %d != %d", resp.h.nlmsg_len, rv); in processNetlinkResponse()
190 const int rv = send(fd, &req, sizeof(req), 0); in doTcQdiscClsact() local
191 if (rv == -1) return -errno; in doTcQdiscClsact()
192 if (rv != sizeof(req)) return -EMSGSIZE; in doTcQdiscClsact()
349 const int rv = send(fd, &req, sizeof(req), 0); in tcFilterAddDevBpf() local
350 if (rv == -1) return -errno; in tcFilterAddDevBpf()
351 if (rv != sizeof(req)) return -EMSGSIZE; in tcFilterAddDevBpf()