Home
last modified time | relevance | path

Searched refs:iov_len (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Connectivity/clatd/
Dtranslate.c40 if (packet[i].iov_len > 0) { in packet_checksum()
41 checksum = ip_checksum_add(checksum, packet[i].iov_base, packet[i].iov_len); in packet_checksum()
57 len += packet[i].iov_len; in packet_length()
240 out[pos].iov_len = sizeof(struct icmp6_hdr); in icmp_to_icmp6()
259 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp_to_icmp6()
292 out[pos].iov_len = sizeof(struct icmphdr); in icmp6_to_icmp()
304 out[CLAT_POS_PAYLOAD].iov_len = payload_size; in icmp6_to_icmp()
326 out[pos].iov_len = 0; in generic_packet()
328 out[CLAT_POS_PAYLOAD].iov_len = len; in generic_packet()
408 out[pos].iov_len = sizeof(struct udphdr); in udp_translate()
[all …]
Dipv4.c66 int iov_len; in ipv4_packet() local
107 out[pos].iov_len = sizeof(struct ip6_hdr); in ipv4_packet()
120 out[pos + 1].iov_len = frag_hdr_len; in ipv4_packet()
124 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv4_packet()
126 iov_len = icmp_packet(out, pos + 2, (const struct icmphdr *)next_header, new_sum, len_left); in ipv4_packet()
128 iov_len = in ipv4_packet()
131 iov_len = in ipv4_packet()
134 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv4_packet()
145 return iov_len; in ipv4_packet()
Dipv6.c85 int iov_len; in ipv6_packet() local
122 out[pos].iov_len = sizeof(struct iphdr); in ipv6_packet()
155 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv6_packet()
157 iov_len = icmp6_packet(out, pos + 2, (const struct icmp6_hdr *)next_header, len_left); in ipv6_packet()
159 iov_len = in ipv6_packet()
162 iov_len = in ipv6_packet()
165 iov_len = generic_packet(out, pos + 2, next_header, len_left); in ipv6_packet()
177 return iov_len; in ipv6_packet()
Ddump.c241 void dump_iovec(const struct iovec *iov, int iov_len) { in dump_iovec() argument
244 for (i = 0; i < iov_len; i++) { in dump_iovec()
246 logcat_hexdump(str, iov[i].iov_base, iov[i].iov_len); in dump_iovec()
Ddump.h44 void dump_iovec(const struct iovec *iov, int iov_len);
Dclatd.c66 .iov_len = sizeof(buf), in process_packet_6_to_4()
Dclatd_test.cpp432 extern "C" void send_rawv6(int fd, clat_packet out, int iov_len) { writev(fd, out, iov_len); } in send_rawv6() argument
/packages/modules/StatsD/lib/libstatssocket/
Dstatsd_writer.cpp222 newVec[0].iov_len = sizeof(header); in statsdWrite()
241 newVec[headerLength].iov_len = sizeof(buffer); in statsdWrite()
258 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in statsdWrite()
261 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in statsdWrite()
262 if (newVec[i].iov_len) { in statsdWrite()
Dstats_buffer_writer.c75 vecs[0].iov_len = sizeof(kStatsEventTag); in write_buffer_to_statsd_impl()
77 vecs[1].iov_len = size; in write_buffer_to_statsd_impl()
94 len += vec[i].iov_len; in __write_to_stats_daemon()
/packages/modules/adb/sysdeps/
Duio.h29 unsigned int iov_len; member
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_util.cc104 iv.iov_len = len; in sock_send_fd()
/packages/modules/adb/client/openscreen/platform/
Dudp_socket.cpp108 iov.iov_len = packet->size(); in ReceiveMessageInternal()
404 iov.iov_len = length; in JoinMulticastGroup()
/packages/modules/Bluetooth/system/osi/src/
Dsocket.cc161 iov.iov_len = count; in socket_write_and_transfer_fd()
/packages/modules/adb/
Dtypes.cpp199 iov.iov_len = len; in iovecs()
Dsysdeps_win32.cpp287 ssize_t rc = _fh_file_write(f, iov[i].iov_base, iov[i].iov_len); in _fh_file_writev()
296 if (static_cast<size_t>(rc) < iov[i].iov_len) { in _fh_file_writev()
720 static_assert(SIZEOF_MEMBER(adb_iovec, iov_len) == SIZEOF_MEMBER(WSABUF, len), "");
721 static_assert(offsetof(adb_iovec, iov_len) == offsetof(WSABUF, len), "");
/packages/modules/DnsResolver/
Dres_send.cpp806 {.iov_base = &len, .iov_len = INT16SZ}, in send_vc()
808 .iov_len = static_cast<size_t>(msg.size())}, in send_vc()