Lines Matching refs:rv

65     int rv = hardwareAddressType(interface);  in isEthernet()  local
66 if (rv < 0) { in isEthernet()
67 errno = -rv; in isEthernet()
71 switch (rv) { in isEthernet()
80 return ErrnoErrorf("Unknown hardware address type {} on interface {}", rv, interface); in isEthernet()
95 int rv = setsockopt(fd, SOL_NETLINK, NETLINK_CAP_ACK, &on, sizeof(on)); in sendAndProcessNetlinkResponse() local
96 if (rv) ALOGE("setsockopt(fd, SOL_NETLINK, NETLINK_CAP_ACK, %d)", on); in sendAndProcessNetlinkResponse()
99 rv = bind(fd, (const struct sockaddr*)&KERNEL_NLADDR, sizeof(KERNEL_NLADDR)); in sendAndProcessNetlinkResponse()
100 if (rv) { in sendAndProcessNetlinkResponse()
107 rv = connect(fd, (const struct sockaddr*)&KERNEL_NLADDR, sizeof(KERNEL_NLADDR)); in sendAndProcessNetlinkResponse()
108 if (rv) { in sendAndProcessNetlinkResponse()
114 rv = send(fd, req, len, 0); in sendAndProcessNetlinkResponse()
115 if (rv == -1) return -errno; in sendAndProcessNetlinkResponse()
116 if (rv != len) return -EMSGSIZE; in sendAndProcessNetlinkResponse()
124 rv = recv(fd, &resp, sizeof(resp), MSG_TRUNC); in sendAndProcessNetlinkResponse()
126 if (rv == -1) { in sendAndProcessNetlinkResponse()
132 if (rv < (int)NLMSG_SPACE(sizeof(struct nlmsgerr))) { in sendAndProcessNetlinkResponse()
133 ALOGE("recv() returned short packet: %d", rv); in sendAndProcessNetlinkResponse()
137 if (resp.h.nlmsg_len != (unsigned)rv) { in sendAndProcessNetlinkResponse()
138 ALOGE("recv() returned invalid header length: %d != %d", resp.h.nlmsg_len, rv); in sendAndProcessNetlinkResponse()