Lines Matching refs:readlen
75 ssize_t readlen = recvmsg(tunnel->read_fd6, &msgh, /*flags*/ 0); in process_packet_6_to_4() local
77 if (readlen < 0) { in process_packet_6_to_4()
82 } else if (readlen == 0) { in process_packet_6_to_4()
86 } else if (readlen >= sizeof(buf)) { in process_packet_6_to_4()
115 if (readlen < payload_offset + tp_net) { in process_packet_6_to_4()
117 __func__, readlen, payload_offset, tp_net); in process_packet_6_to_4()
121 const int pkt_len = readlen - payload_offset; in process_packet_6_to_4()
158 ssize_t readlen = read(tunnel->fd4, &buf, sizeof(buf)); in process_packet_4_to_6() local
160 if (readlen < 0) { in process_packet_4_to_6()
165 } else if (readlen == 0) { in process_packet_4_to_6()
169 } else if (readlen >= sizeof(buf)) { in process_packet_4_to_6()
176 if (readlen < payload_offset) { in process_packet_4_to_6()
177 logmsg(ANDROID_LOG_WARN, "%s: short read: got %ld bytes", __func__, readlen); in process_packet_4_to_6()
181 const int pkt_len = readlen - payload_offset; in process_packet_4_to_6()