Lines Matching full:logerr
192 mDNSlocal void LogErr(const char *fn, const char *operation)
306 if ( !sock ) { LogErr("ConnectToServer", "socket"); return NULL; }
312 LogErr("ConnectToServer", "connect");
339 if (selectval < 0) { LogErr("MySend", "select"); return -1; }
344 if (n < 0) { LogErr("MySend", "send"); return -1; }
390 if (selectval < 0) { LogErr("my_recv", "select"); return -1; }
457 require_action_quiet( pkt, exit, err = mStatus_NoMemoryErr; LogErr( "RecvPacket", "malloc" ) );
466 LogErr("RecvPacket", "getpeername");
471 require_action_quiet( nread >= 0, exit, err = mStatus_UnknownErr ; LogErr( "RecvPacket", "recv" ) );
708 require_action( sd >= 0, exit, err = mStatus_UnknownErr; LogErr( "UDPServerTransaction", "socket" ) );
718 require_action( res == (int) request->len, exit, err = mStatus_UnknownErr; LogErr( "UDPServerTransaction", "sendto" ) );
725 require_action( res >= 0, exit, err = mStatus_UnknownErr; LogErr( "UDPServerTransaction", "select" ) );
731 require_action( ( ( int ) reply->len ) >= 0, exit, err = mStatus_UnknownErr; LogErr( "UDPServerTransaction", "recvfrom" ) );
791 if (!cr) { LogErr("CopyCacheRecord", "malloc"); return NULL; }
813 if (!new) { LogErr("RehashTable", "malloc"); return; }
842 if (gettimeofday(&now, NULL)) { LogErr("PrintTable", "gettimeofday"); return; }
843 if (pthread_mutex_lock(&d->tablelock)) { LogErr("PrintTable", "pthread_mutex_lock"); return; }
1143 if (pthread_mutex_init(&d->tablelock, NULL)) { LogErr("InitLeaseTable", "pthread_mutex_init"); return -1; }
1147 if (!d->table) { LogErr("InitLeaseTable", "malloc"); return -1; }
1169 require_action( dnssd_SocketValid(self->tcpsd), exit, err = mStatus_UnknownErr; LogErr( "SetupSockets", "socket" ) );
1173 require_action( !err, exit, LogErr( "SetupSockets", "SO_REUSEADDR self->tcpsd" ) );
1177 require_action( !err, exit, LogErr( "SetupSockets", "bind self->tcpsd" ) );
1180 require_action( !err, exit, LogErr( "SetupSockets", "listen" ) );
1183 require_action( dnssd_SocketValid(self->udpsd), exit, err = mStatus_UnknownErr; LogErr( "SetupSockets", "socket" ) );
1187 require_action( !err, exit, LogErr( "SetupSockets", "SO_REUSEADDR self->udpsd" ) );
1191 require_action( !err, exit, LogErr( "SetupSockets", "bind self->udpsd" ) );
1208 require_action( dnssd_SocketValid(self->llq_tcpsd), exit, err = mStatus_UnknownErr; LogErr( "SetupSockets", "socket" ) );
1212 require_action( !err, exit, LogErr( "SetupSockets", "SO_REUSEADDR self->llq_tcpsd" ) );
1216 require_action( !err, exit, LogErr( "SetupSockets", "bind self->llq_tcpsd" ) );
1219 require_action( !err, exit, LogErr( "SetupSockets", "listen" ) );
1222 require_action( dnssd_SocketValid(self->llq_udpsd), exit, err = mStatus_UnknownErr; LogErr( "SetupSockets", "socket" ) );
1226 require_action( !err, exit, LogErr( "SetupSockets", "SO_REUSEADDR self->llq_udpsd" ) );
1230 require_action( !err, exit, LogErr( "SetupSockets", "bind self->llq_udpsd" ) );
1236 require_action( !err, exit, LogErr( "SetupSockets", "socketpair" ) );
1244 require_action( dnssd_SocketValid(self->tlssd), exit, err = mStatus_UnknownErr; LogErr( "SetupSockets", "socket" ) );
1251 require_action( dnssd_SocketValid(self->tlssd), exit, err = mStatus_UnknownErr; LogErr( "SetupSockets", "socket" ) );
1255 require_action( !err, exit, LogErr( "SetupSockets", "SO_REUSEADDR self->tlssd" ) );
1259 require_action( !err, exit, LogErr( "SetupSockets", "bind self->tlssd" ) );
1262 require_action( !err, exit, LogErr( "SetupSockets", "listen" ) );
1278 require_action( !err, exit, LogErr( "SetupSockets", "mDNSPlatformTLSSetupCerts" ) );
1344 if (gettimeofday(&now, NULL)) { LogErr("DeleteRecords ", "gettimeofday"); return; }
1345 if (pthread_mutex_lock(&d->tablelock)) { LogErr("DeleteRecords", "pthread_mutex_lock"); return; }
1385 if (pthread_mutex_lock(&d->tablelock)) { LogErr("UpdateLeaseTable", "pthread_mutex_lock"); return; }
1436 if (gettimeofday(&tv, NULL)) { LogErr("UpdateLeaseTable", "gettimeofday"); goto cleanup; }
1449 if (gettimeofday(&tv, NULL)) { LogErr("UpdateLeaseTable", "gettimeofday"); goto cleanup; }
1453 if (!tmp) { LogErr("UpdateLeaseTable", "malloc"); goto cleanup; }
1484 if (!reply) { LogErr("FormatLeaseReply", "malloc"); return NULL; }
1610 LogErr("HandleRequest", "send");
1632 LogErr("HandleRequest", "malloc");
1720 LogErr("DaemonInfo", "MySend");
1728 LogErr("DaemonInfo", "sendto");
1996 if (!args) { LogErr("GenLLQEvents", "malloc"); return; }
1999 if (pthread_create(&a->tid, NULL, UpdateAnswerList, args) < 0) { LogErr("GenLLQEvents", "pthread_create"); return; }
2010 if (pthread_join(a->tid, NULL)) LogErr("GenLLQEvents", "pthread_join");
2066 if (!a) { LogErr("SetAnswerList", "malloc"); return; }
2091 if (!e) { LogErr("NewLLQ", "malloc"); return NULL; }
2313 require_action( res == ( int ) pkt->len, exit, err = mStatus_UnknownErr; LogErr( "RecvNotify", "sendto" ) );
2543 require_action_quiet( res == ( int ) reply->len, exit, LogErr( "UDPMessageHandler", "sendto" ) );
2577 require_action( context, exit, err = mStatus_NoMemoryErr ; LogErr( "RecvUDPMessage", "malloc" ) );
2585 require_action( res >= 0, exit, err = mStatus_UnknownErr ; LogErr( "RecvUDPMessage", "recvfrom" ) );
2621 require_action( !err, exit, LogErr( "RecvUDPMessage", "pthread_create" ) );
2636 require_action_quiet( e == ( int ) reply.len, exit, LogErr( "RecvUDPMessage", "sendto" ) );
2757 LogErr( "RecvTCPMessage", "pthread_create" );
2816 require_action( context, exit, err = mStatus_NoMemoryErr; LogErr( "AcceptTCPConnection", "malloc" ) );
2820 require_action( newSock != -1, exit, err = mStatus_UnknownErr; LogErr( "AcceptTCPConnection", "accept" ) );
2823 require_action( context->sock, exit, err = mStatus_UnknownErr; LogErr( "AcceptTCPConnection", "mDNSPlatformTCPAccept" ) );
2826 require_action( !err, exit, LogErr( "AcceptTCPConnection", "AddSourceToEventLoop" ) );
2867 if (gettimeofday(&timenow, NULL)) { LogErr("Run", "gettimeofday"); return -1; }
2940 LogErr( "Run", "ParseConfig" );
2953 LogErr("Run", "select"); return -1;
2971 if (gettimeofday(&EventTS, NULL)) { LogErr("Run", "gettimeofday"); return -1; }
3034 if (!d) { LogErr("main", "malloc"); exit(1); }
3058 LogErr("main", "setrlimit");
3069 if (ProcessArgs(argc, argv, d) < 0) { LogErr("main", "ProcessArgs"); exit(1); }
3075 LogErr("main", "daemon");
3080 if (InitLeaseTable(d) < 0) { LogErr("main", "InitLeaseTable"); exit(1); }
3081 if (SetupSockets(d) < 0) { LogErr("main", "SetupSockets"); exit(1); }
3082 if (SetUpdateSRV(d) < 0) { LogErr("main", "SetUpdateSRV"); exit(1); }
3088 if (ClearUpdateSRV(d) < 0) { LogErr("main", "ClearUpdateSRV"); exit(1); } // clear update srv's even if Run or pthread_create returns an error