Home
last modified time | relevance | path

Searched refs:readlen (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/clatd/
Dclatd.c75 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()
[all …]
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp195 ssize_t readlen = read(fd, buf, std::size(buf)); in handlePacket() local
196 if (readlen < 0) { in handlePacket()
199 } else if (readlen == 0) { in handlePacket()
205 const Slice tunPacket(buf, readlen); in handlePacket()
217 write(fd, buf, readlen); in handlePacket()