Lines Matching refs:LOG
95 LOG(WARNING) << "Retry to bind " << addr2str(address, address_len); in bindSocket()
192 LOG(ERROR) << "parsing failed at line " << __LINE__; in read()
205 LOG(ERROR) << "logic error: all names are expected to end with a '.'"; in write()
210 LOG(ERROR) << "name component '" << name.substr(pos, dot_pos - pos) << "' is " << len in write()
215 LOG(ERROR) << "buffer overflow at line " << __LINE__; in write()
230 LOG(ERROR) << "parsing failed at line " << __LINE__; in parseField()
243 LOG(ERROR) << "parsing failed at line " << __LINE__; in parseField()
250 LOG(ERROR) << "name compression not implemented"; in parseField()
253 LOG(ERROR) << "invalid name field type"; in parseField()
260 LOG(ERROR) << "parsing failed at line " << __LINE__; in read()
264 LOG(ERROR) << "parsing failed at line " << __LINE__; in read()
276 LOG(ERROR) << "buffer overflow on line " << __LINE__; in write()
294 LOG(ERROR) << "parsing failed at line " << __LINE__; in read()
300 LOG(ERROR) << "parsing failed at line " << __LINE__; in read()
304 LOG(ERROR) << "parsing failed at line " << __LINE__; in read()
317 LOG(ERROR) << "buffer overflow on line " << __LINE__; in write()
332 LOG(ERROR) << "parsing failed at line " << __LINE__; in readIntFields()
345 LOG(ERROR) << "buffer overflow on line " << __LINE__; in writeIntFields()
363 LOG(ERROR) << "parsing failed at line " << __LINE__; in read()
371 LOG(ERROR) << "parsing failed at line " << __LINE__; in read()
381 LOG(ERROR) << "parsing failed at line " << __LINE__; in read()
391 LOG(ERROR) << "parsing failed at line " << __LINE__; in read()
401 LOG(ERROR) << "parsing failed at line " << __LINE__; in read()
411 LOG(ERROR) << "buffer overflow on line " << __LINE__; in write()
520 LOG(ERROR) << "Cannot remove mapping from (" << name << ", " << dnstype2str(type) in removeMapping()
528 LOG(ERROR) << "Cannot remove mapping from (" << name << ", " << dnstype2str(type) in removeMappingDnsHeader()
536 LOG(ERROR) << "Cannot remove mapping, not present in registered BinaryPacket mappings"; in removeMappingBinaryPacket()
537 LOG(INFO) << "Hex dump:"; in removeMappingBinaryPacket()
538 LOG(INFO) << android::netdutils::toHex( in removeMappingBinaryPacket()
564 LOG(FATAL) << "Unsupported protocol " << protocol; // abort() by log level FATAL in setResponseProbability()
575 LOG(FATAL) << "Unsupported protocol " << protocol; // abort() by log level FATAL in getResponseProbability()
595 LOG(ERROR) << "server already running"; in startServer()
629 LOG(INFO) << "adding UDP socket to epoll"; in startServer()
631 LOG(ERROR) << "failed to add the UDP socket to epoll"; in startServer()
635 LOG(INFO) << "adding TCP socket to epoll"; in startServer()
637 LOG(ERROR) << "failed to add the TCP socket to epoll"; in startServer()
641 LOG(INFO) << "adding eventfd to epoll"; in startServer()
643 LOG(ERROR) << "failed to add the eventfd to epoll"; in startServer()
651 LOG(INFO) << "server started successfully"; in startServer()
658 LOG(ERROR) << "server not running"; in stopServer()
661 LOG(INFO) << "stopping server"; in stopServer()
670 LOG(INFO) << "server stopped successfully"; in stopServer()
724 LOG(WARNING) << "unexpected epoll events " << events << " on fd " << fd; in requestHandler()
732 LOG(DEBUG) << "request: '" << str2hex(buffer, len) << "', on " << dnsproto2str(protocol); in handleDNSRequest()
738 LOG(ERROR) << "failed to parse query"; in handleDNSRequest()
742 LOG(ERROR) << "response received instead of a query"; in handleDNSRequest()
746 LOG(INFO) << "unsupported request opcode received"; in handleDNSRequest()
750 LOG(INFO) << "no questions present"; in handleDNSRequest()
754 LOG(INFO) << "already " << header.answers.size() << " answers present in query"; in handleDNSRequest()
759 LOG(INFO) << "force to return RCODE FORMERR"; in handleDNSRequest()
764 LOG(INFO) << "DNS request has an additional section (assumed EDNS). Simulating an ancient " in handleDNSRequest()
783 LOG(ERROR) << "Returning no response"; in handleDNSRequest()
786 LOG(INFO) << "returning RCODE " << static_cast<int>(error_rcode_) in handleDNSRequest()
836 LOG(INFO) << "no mapping found for " << question.qname.name << " " in addAnswerRecords()
847 LOG(ERROR) << "inet_pton(AF_INET, " << rdatastr << ") failed"; in fillRdata()
853 LOG(ERROR) << "inet_pton(AF_INET6, " << rdatastr << ") failed"; in fillRdata()
865 LOG(ERROR) << "invalid absolute domain name"; in fillRdata()
872 LOG(ERROR) << "invalid label length"; in fillRdata()
883 LOG(ERROR) << "invalid name length"; in fillRdata()
888 LOG(ERROR) << "unhandled qtype " << dnstype2str(record.rtype); in fillRdata()
958 LOG(INFO) << "Return truncated response because original response length " << buffer_len in makeResponse()
964 LOG(ERROR) << "buffer overflow on line " << __LINE__; in makeResponse()
976 LOG(INFO) << "unsupported question class " << question.qclass; in makeResponseFromAddressOrHostname()
999 LOG(INFO) << "unsupported question count " << questions.size(); in makeResponseFromDnsHeader()
1004 LOG(INFO) << "unsupported question class " << questions[0].qclass; in makeResponseFromDnsHeader()
1023 LOG(INFO) << "no mapping found for " << name << " " << dnstype2str(qtype) in makeResponseFromDnsHeader()
1049 LOG(ERROR) << "buffer overflow on line " << __LINE__; in makeResponseFromBinaryPacket()
1063 LOG(INFO) << "no mapping found, couldn't build a response from BinaryPacket mapping"; in makeResponseFromBinaryPacket()
1134 LOG(DEBUG) << "read " << len << " bytes on " << dnsproto2str(protocol); in handleQuery()
1176 LOG(DEBUG) << "sent " << len << " bytes to " << host_str; in handleQuery()
1179 LOG(ERROR) << method_str << " failed for " << host_str; in handleQuery()
1188 if (cur == nullptr) LOG(WARNING) << "response is flawed"; in handleQuery()
1190 LOG(WARNING) << "not responding"; in handleQuery()
1223 LOG(ERROR) << "getaddrinfo(" << listen_address_ << ", " << listen_service_ in createListeningSocket()
1244 LOG(INFO) << "bound to " << socket_str << " " << host_str << ":" << listen_service_; in createListeningSocket()