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