Lines Matching refs:llq
723 optRD->u.llq = *data; in putLLQ()
748 mDNSlocal void sendChallengeResponse(mDNS *const m, DNSQuestion *const q, const LLQOptData *llq) in sendChallengeResponse() argument
764 if (!llq) // Retransmission: need to make a new LLQOptData in sendChallengeResponse()
771 llq = &llqBuf; in sendChallengeResponse()
782 responsePtr = putLLQ(&m->omsg, responsePtr, q, llq); in sendChallengeResponse()
791 mDNSlocal void SetLLQTimer(mDNS *const m, DNSQuestion *const q, const LLQOptData *const llq) in SetLLQTimer() argument
793 mDNSs32 lease = (mDNSs32)llq->llqlease * mDNSPlatformOneSecond; in SetLLQTimer()
794 q->ReqLease = llq->llqlease; in SetLLQTimer()
802 …d recvSetupResponse(mDNS *const m, mDNSu8 rcode, DNSQuestion *const q, const LLQOptData *const llq) in recvSetupResponse() argument
807 if (llq->llqOp != kLLQOp_Setup) in recvSetupResponse()
808 …{ LogMsg("ERROR: recvSetupResponse %##s (%s) - bad op %d", q->qname.c, DNSTypeName(q->qtype), llq-… in recvSetupResponse()
810 if (llq->vers != kLLQ_Vers) in recvSetupResponse()
811 …ecvSetupResponse %##s (%s) - bad vers %d", q->qname.c, DNSTypeName(q->qtype), llq->vers); return; } in recvSetupResponse()
817 …if (llq->err) { LogMsg("recvSetupResponse - received llq->err %d from server", llq->err); StartLLQ… in recvSetupResponse()
819 if (q->ReqLease != llq->llqlease) in recvSetupResponse()
820 debugf("recvSetupResponse: requested lease %lu, granted lease %lu", q->ReqLease, llq->llqlease); in recvSetupResponse()
823 q->ReqLease = llq->llqlease; in recvSetupResponse()
824 q->expire = m->timenow + ((mDNSs32)llq->llqlease * mDNSPlatformOneSecond); in recvSetupResponse()
828 q->id = llq->id; in recvSetupResponse()
830 sendChallengeResponse(m, q, llq); in recvSetupResponse()
842 LogInfo("Private LLQ_SecondaryRequest; copying id %08X%08X", llq->id.l[0], llq->id.l[1]); in recvSetupResponse()
843 q->id = llq->id; in recvSetupResponse()
846 …if (llq->err) { LogMsg("ERROR: recvSetupResponse %##s (%s) code %d from server", q->qname.c, DNSTy… in recvSetupResponse()
847 if (!mDNSSameOpaque64(&q->id, &llq->id)) in recvSetupResponse()
851 SetLLQTimer(m, q, llq); in recvSetupResponse()
872 …opt ? opt->u.llq.id.l[0] : 0, opt ? opt->u.llq.id.l[1] : 0, q->id.l[0], q->id.l[1], opt ? opt->u.l… in uDNS_recvLLQResponse()
904 …f (opt && q->state == LLQ_Established && opt->u.llq.llqOp == kLLQOp_Event && mDNSSameOpaque64(&opt… in uDNS_recvLLQResponse()
909 ackEnd = putLLQ(&m->omsg, m->omsg.data, q, &opt->u.llq); in uDNS_recvLLQResponse()
918 …if (q->state == LLQ_Established && opt->u.llq.llqOp == kLLQOp_Refresh && mDNSSameOpaque64(&opt->u.… in uDNS_recvLLQResponse()
920 …if (opt->u.llq.err != LLQErr_NoError) LogMsg("recvRefreshReply: received error %d from server", op… in uDNS_recvLLQResponse()
926 if (opt->u.llq.llqlease == 0 && m->SleepLimit) m->NextScheduledSPRetry = m->timenow; in uDNS_recvLLQResponse()
927 GrantCacheExtensions(m, q, opt->u.llq.llqlease); in uDNS_recvLLQResponse()
928 SetLLQTimer(m, q, &opt->u.llq); in uDNS_recvLLQResponse()
938 recvSetupResponse(m, msg->h.flags.b[1] & kDNSFlag1_RC_Mask, q, &opt->u.llq); in uDNS_recvLLQResponse()
3577 LLQOptData llq; in sendLLQRefresh() local
3588 llq.vers = kLLQ_Vers; in sendLLQRefresh()
3589 llq.llqOp = kLLQOp_Refresh; in sendLLQRefresh()
3590 …llq.err = q->tcp ? GetLLQEventPort(m, &q->servAddr) : LLQErr_NoError; // If using TCP tell se… in sendLLQRefresh()
3591 llq.id = q->id; in sendLLQRefresh()
3592 llq.llqlease = q->ReqLease; in sendLLQRefresh()
3595 end = putLLQ(&m->omsg, m->omsg.data, q, &llq); in sendLLQRefresh()