Lines Matching defs:Log
145 // Log messages are delivered to syslog unless -f option specified
178 mDNSlocal void Log(const char *format, ...)
313 Log("ConnectToServer - retrying connection");
318 else { Log("ConnectToServer - %d failed attempts. Aborting.", ntries); return NULL; }
340 if (!selectval || !FD_ISSET(fd, &wset)) { Log("MySend - timeout"); return -1; }
393 Log("my_recv - timeout");
436 require_action_quiet( nread == sizeof( msglen ), exit, err = mStatus_UnknownErr; Log( "Could not read length field of message") );
440 require_action_quiet( msglen <= sizeof( storage->msg ), exit, err = mStatus_UnknownErr; Log( "RecvPacket: provided buffer too small." ) );
472 require_action_quiet( nread == msglen, exit, err = mStatus_UnknownErr ; Log( "Could not read entire message" ) );
473 require_action_quiet( pkt->len >= sizeof( DNSMessageHeader ), exit, err = mStatus_UnknownErr ; Log( "RecvPacket: Message too short (%d bytes)", pkt->len ) );
567 if (!ptr) { Log("Unable to read additional record"); goto end; }
726 require_action( ( res > 0 ) && FD_ISSET( sd, &rset ), exit, err = mStatus_UnknownErr; Log( "UDPServerTransaction - timeout" ) );
732 require_action( reply->len >= sizeof( DNSMessageHeader ), exit, err = mStatus_UnknownErr; Log( "UDPServerTransaction - Message too short (%d bytes)", reply->len ) );
845 Log("Dumping Lease Table Contents (table contains %d resource records)", d->nelems);
853 Log("Update from %s, Expires in %d:%d:%d\n\t%s", inet_ntop(AF_INET, &ptr->cli.sin_addr, addrbuf, 16), hr, min, sec,
915 require_action( sock, exit, err = mStatus_UnknownErr; Log( "UpdateSRV: ConnectToServer failed" ) );
933 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
938 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
940 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
942 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
947 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
949 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
957 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
959 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
961 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
965 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
967 require_action( ptr, exit, err = mStatus_UnknownErr; Log("UpdateSRV: Error constructing lease expiration update" ) );
975 require_action( ptr, exit, Log("UpdateSRV: Error constructing lease expiration update" ) );
983 require_action( !err, exit, Log( "UpdateSRV: SendPacket failed" ) );
986 require_action( reply, exit, err = mStatus_UnknownErr; Log( "UpdateSRV: RecvPacket returned NULL" ) );
992 Log("SRV record registration failed with rcode %d", reply->msg.h.flags.b[1] & kDNSFlag1_RC_Mask);
1324 if (SendPacket( sock, &pkt)) { Log("DeleteOneRecord: SendPacket failed"); }
1327 require_action( reply, end, Log( "DeleteOneRecord: RecvPacket returned NULL" ) );
1330 Log("Expiration update failed with rcode %d", reply ? reply->msg.h.flags.b[1] & kDNSFlag1_RC_Mask : -1);
1333 if (!ptr) { Log("DeleteOneRecord: Error constructing lease expiration update"); }
1343 if (!sock) { Log("DeleteRecords: ConnectToServer failed"); return; }
1390 if (!ptr) { Log("UpdateLeaseTable: cannot read zone"); goto cleanup; }
1392 if (!ptr) { Log("UpdateLeaseTable: Format error"); goto cleanup; }
1399 if (!ptr || lcr.r.resrec.RecordType == kDNSRecordTypePacketNegative) { Log("UpdateLeaseTable: GetLargeResourceRecord failed"); goto cleanup; }
1494 if (!ptr) { Log("FormatLeaseReply: putUpdateLease failed"); free(reply); return NULL; }
1534 Log("Rejecting Update Request with %d additions but no lease", adds);
1554 Log("HandleRequest - UDPServerTransaction failed. Trying TCP");
1572 require_action_quiet( sock, exit, err = mStatus_UnknownErr ; Log( "Discarding request from %s due to connection errors", inet_ntop( AF_INET, &request->src.sin_addr, addrbuf, 32 ) ) );
1575 require_action_quiet( res >= 0, exit, err = mStatus_UnknownErr ; Log( "Couldn't relay message from %s to server. Discarding.", inet_ntop(AF_INET, &request->src.sin_addr, addrbuf, 32 ) ) );
1599 Log("HandleRequest - unable to format lease reply");
1699 else Log("Error: DeleteLLQ - AnswerList not found in table");
1704 if (!*ptr) { Log("Error: DeleteLLQ - LLQ not in table"); return; }
1721 Log("Could not send response to client %s", inet_ntop(AF_INET, &dst.sin_addr, addr, 32));
1729 Log("Could not send response to client %s", inet_ntop(AF_INET, &dst.sin_addr, addr, 32));
1755 if (!end) { Log("Error: AnswerQuestion - putQuestion returned NULL"); goto end; }
1765 Log("AnswerQuestion %##s - UDPServerTransaction failed. Trying TCP", e->name.c);
1776 if (!sock) { Log("AnswerQuestion: ConnectToServer failed"); goto end; }
1777 if (SendPacket( sock, &q)) { Log("AnswerQuestion: SendPacket failed"); mDNSPlatformTCPCloseConnection( sock ); goto end; }
1780 require_action( reply, end, Log( "AnswerQuestion: RecvPacket returned NULL" ) );
1787 { Log("AnswerQuestion: %##s type %d - Invalid response flags from server"); goto end; }
1789 if (rcode && rcode != kDNSFlag1_RC_NXDomain) { Log("AnswerQuestion: %##s type %d - non-zero rcode %d from server", e->name.c, e->type, rcode); goto end; }
1793 if (!ansptr) { Log("Error: AnswerQuestion - LocateAnswers returned NULL"); goto end; }
1798 if (!ansptr) { Log("AnswerQuestions: GetLargeResourceRecord returned NULL"); goto end; }
1803 Log("AnswerQuestion: response %##s type #d does not answer question %##s type #d. Discarding",
1809 if (!cr) { Log("Error: AnswerQuestion - CopyCacheRecord returned NULL"); goto end; }
1905 if (!end) { Log("Error: SendEvents - putQuestion returned NULL"); return; }
1913 if (!end) { Log("Error: SendEvents - PutResourceRecordTTLJumbo returned NULL"); return; }
1918 if (!end) { Log("Error: SendEvents - PutResourceRecordTTLJumbo"); return; }
1929 Log("Printing LLQ Answer Table contents");
1939 Log("%p : Question %##s; type %d; referenced by %d LLQs; %d answers:", a, a->name.c, a->type, a->refcount, ancount);
1940 for (rr = a->KnownAnswers; rr; rr = rr->next) Log("\t%s", GetRRDisplayString_rdb(&rr->resrec, &rr->resrec.rdata->u, rrbuf));
1952 Log("Printing LLQ table contents");
1970 Log("LLQ from %s in state %s; %##s; type %d; orig lease %d; remaining lease %d; AnswerList %p)",
2141 if (!end) { Log("Error: putQuestion"); return; }
2145 if (!end) { Log("Error: PutResourceRecordTTLJumbo"); return; }
2148 if (SendLLQ(d, &ack, e->cli, sock)) Log("Error: LLQRefresh");
2173 Log("Incorrect challenge response from %s", addr);
2184 if (!end) { Log("Error: putQuestion"); return; }
2194 if (!end) { Log("Error: PutResourceRecordTTLJumbo"); return; }
2199 if (!end) { Log("Error: PutResourceRecordTTLJumbo"); return; }
2202 if (SendLLQ(d, &ack, e->cli, sock)) Log("Error: LLQCompleteHandshake");
2215 if (!mDNSOpaque64IsZero(&llq->id)) { Log("Error: LLQSetupChallenge - nonzero ID"); return; } // server bug
2216 if (llq->llqOp != kLLQOp_Setup) { Log("LLQSetupChallenge - incorrrect operation from client"); return; } // client error
2230 if (!end) { Log("Error: putQuestion"); return; }
2233 if (!end) { Log("Error: PutResourceRecordTTLJumbo"); return; }
2235 if (SendLLQ(d, &challenge, e->cli, NULL)) { Log("Error: LLQSetupChallenge"); return; }
2280 else { Log("Unhandled message for established LLQ"); return; }
2341 Log("Malformatted LLQ from %s with %d questions, %d additionals", addr, pkt->msg.h.numQuestions, pkt->msg.h.numAdditionals);
2352 if (!aptr) { Log("Malformatted LLQ from %s: could not get Additional record %d", addr, i); goto end; }
2357 if (opt.r.resrec.rrtype != kDNSType_OPT) { Log("Malformatted LLQ from %s: last Additional not an OPT RR", addr); goto end; }
2358 if (opt.r.resrec.rdlength < pkt->msg.h.numQuestions * DNSOpt_LLQData_Space) { Log("Malformatted LLQ from %s: OPT RR to small (%d bytes for %d questions)", addr, opt.r.resrec.rdlength, pkt->msg.h.numQuestions); }
2364 if (!qptr) { Log("Malformatted LLQ from %s: cannot read question %d", addr, i); goto end; }
2366 if (llq->vers != kLLQ_Vers) { Log("LLQ from %s contains bad version %d (expected %d)", addr, llq->vers, kLLQ_Vers); goto end; }
2416 Log("Unable to read additional record");
2466 Log( "Invalid TSIG spec %##s for zone %##s", lcr.r.resrec.name->c, pkt->zone->name.c );
2486 Log( "Invalid TSIG name %##s for zone %##s", lcr.r.resrec.name->c, pkt->zone->name.c );
2587 require_action( clisize == sizeof( context->cliaddr ), exit, err = mStatus_UnknownErr ; Log( "Client address of unknown size %d", clisize ) );
2923 Log( "Received SIGINFO" );
2934 Log( "Received SIGHUP" );
2948 Log("Received unhandled signal - continuing");
3031 Log("dnsextd starting");
3059 Log("Using default file descriptor resource limit");
3064 Log("started_via_launchd");
3086 Log("dnsextd stopping");