Lines Matching refs:end

175         *p = tmp; // move to end of list, to ensure ordering from platform layer
238 // After we reset the qDNSServer to NULL, we could get more SERV_FAILS that might end up
241 goto end;
275 end:
288 // When we have no more DNS servers, we might end up calling PenalizeDNSServer multiple
306 // the interval. We do this only the first time when we try all the DNS servers. Once we reached the end of
495 mDNSu8* end = start + sizeof(NATAddrRequest);
496 err = mDNSPlatformSendUDP(m, start, end, 0, mDNSNULL, &m->Router, NATPMPPort, mDNSfalse);
566 static const mDNSu8* end = (mDNSu8 *)&NATPortReq + sizeof(NATPortMapRequest);
579 err = mDNSPlatformSendUDP(m, (mDNSu8 *)&NATPortReq, end, 0, mDNSNULL, &m->Router, NATPMPPort, mDNSfalse);
603 mDNSu8* end = start + sizeof(req);
637 err = mDNSPlatformSendUDP(m, start, end, 0, mDNSNULL, &m->Router, NATPMPPort, mDNSfalse);
828 // Note: It important that new traversal requests are appended at the *end* of the list, not prepended at the start
882 *n = traversal; // Append new NATTraversalInfo to the end of our list
1008 // locate OptRR if it exists, set pointer to end
1154 mDNSexport uDNS_LLQType uDNS_recvLLQResponse(mDNS *const m, const DNSMessage *const msg, const mDNSu8 *const end,
1158 if (msg->h.numQuestions && getQuestion(msg, msg->data, end, 0, &pktQ))
1160 const rdataOPT *opt = GetLLQOptData(m, msg, end);
1277 mDNSu8 *end = ((mDNSu8*) &tcpInfo->request) + tcpInfo->requestLen;
1293 end = ((mDNSu8*) &tcpInfo->request) + tcpInfo->requestLen;
1309 end = putLLQ(&tcpInfo->request, tcpInfo->request.data, q, &llqData);
1310 if (!end) { LogMsg("ERROR: tcpCallback - putLLQ"); err = mStatus_UnknownErr; goto exit; }
1318 end = putQuestion(&tcpInfo->request, tcpInfo->request.data, tcpInfo->request.data + AbsoluteMaxDNSMessageData, &q->qname, q->qtype, q->qclass);
1322 end = DNSProxySetAttributes(q, &tcpInfo->request.h, &tcpInfo->request, end, tcpInfo->request.data + AbsoluteMaxDNSMessageData);
1324 end = putDNSSECOption(&tcpInfo->request, end, tcpInfo->request.data + AbsoluteMaxDNSMessageData);
1330 err = mDNSSendDNSMessage(m, &tcpInfo->request, end, mDNSInterface_Any, mDNSNULL, &tcpInfo->Addr, tcpInfo->Port, sock, AuthInfo, mDNSfalse);
1430 mDNSu8 *end = (mDNSu8 *)tcpInfo->reply + tcpInfo->replylen;
1455 mDNSCoreReceive(m, reply, end, &Addr, Port, tls ? (mDNSAddr *)1 : mDNSNULL, srcPort, 0);
1468 // we won't end up double-disposing our tcpInfo_t
1539 mDNSlocal tcpInfo_t *MakeTCPConn(mDNS *const m, const DNSMessage *const msg, const mDNSu8 *const end,
1572 info->requestLen = (int) (end - ((mDNSu8*)msg));
1641 // switch networks, we might end up "Polling" the network e.g., we are behind a Double NAT.
1681 mDNSu8 *end;
1692 end = putLLQ(&m->omsg, m->omsg.data, q, &llqData);
1693 if (!end) { LogMsg("ERROR: startLLQHandshake - putLLQ"); StartLLQPolling(m,q); return; }
1695 mDNSSendDNSMessage(m, &m->omsg, end, mDNSInterface_Any, q->LocalSocket, &q->servAddr, q->servPort, mDNSNULL, mDNSNULL, mDNSfalse);
2766 mDNSlocal mStatus ParseTSIGError(mDNS *const m, const DNSMessage *const msg, const mDNSu8 *const end, const domainname *const displayname)
2772 ptr = LocateAdditionals(msg, end);
2777 ptr = GetLargeResourceRecord(m, msg, ptr, end, 0, kDNSRecordTypePacketAdd, &m->rec);
2815 mDNSlocal mStatus checkUpdateResult(mDNS *const m, const domainname *const displayname, const mDNSu8 rcode, const DNSMessage *const msg, const mDNSu8 *const end)
2837 mStatus tsigerr = ParseTSIGError(m, msg, end, displayname);
2847 mStatus tsigerr = ParseTSIGError(m, msg, end, displayname);
2948 //ptr = putPrereqNameNotInUse(rr->resrec.name, &m->omsg, ptr, end);
3125 else LogInfo("SendGroupRRMessage: Sent a group update ID: %d start %p, end %p, limit %p", mDNSVal16(m->omsg.h.id), m->omsg.data, ptr, limit);
3131 else LogInfo("SendGroupRRMessage: Sent a group UDP update ID: %d start %p, end %p, limit %p", mDNSVal16(m->omsg.h.id), m->omsg.data, ptr, limit);
3137 // at the end, it will get compressed. Hence, we subtract zoneSize and add two bytes for
3258 // to be at the end)
3898 // name servers and giving Apple a bad reputation. To this end we send this query:
3938 mDNSlocal mDNSBool uDNS_ReceiveTestQuestionResponse(mDNS *const m, DNSMessage *const msg, const mDNSu8 *const end,
3948 ptr = getQuestion(msg, ptr, end, mDNSInterface_Any, &pktq);
4000 mDNSexport void uDNS_ReceiveMsg(mDNS *const m, DNSMessage *const msg, const mDNSu8 *const end, const mDNSAddr *const srcaddr, const mDNSIPPort srcport)
4018 msg->h.numAdditionals, msg->h.numAdditionals == 1 ? "" : "s", end - msg->data);
4026 //if (srcaddr && recvLLQResponse(m, msg, end, srcaddr, srcport)) return;
4027 if (uDNS_ReceiveTestQuestionResponse(m, msg, end, srcaddr, srcport)) return;
4045 mDNSu32 lease = GetPktLease(m, msg, end);
4062 err = checkUpdateResult(m, rptr->resrec.name, rcode, msg, end);
4085 mDNSu8 *end;
4104 end = putLLQ(&m->omsg, m->omsg.data, q, &llq);
4105 if (!end) { LogMsg("sendLLQRefresh: putLLQ failed %##s (%s)", q->qname.c, DNSTypeName(q->qtype)); return; }
4109 end = putHINFO(m, &m->omsg, end, q->AuthInfo, limit);
4110 if (!end) { LogMsg("sendLLQRefresh: putHINFO failed %##s (%s)", q->qname.c, DNSTypeName(q->qtype)); return; }
4114 DNSDigest_SignMessageHostByteOrder(&m->omsg, &end, q->AuthInfo);
4115 if (!end) { LogMsg("sendLLQRefresh: DNSDigest_SignMessage failed %##s (%s)", q->qname.c, DNSTypeName(q->qtype)); return; }
4134 q->tcp = MakeTCPConn(m, &m->omsg, end, kTCPSocketFlags_UseTLS, &q->servAddr, q->servPort, &q->nta->Host, q, mDNSNULL);
4145 err = mDNSSendDNSMessage(m, &m->omsg, end, mDNSInterface_Any, q->LocalSocket, &q->servAddr, q->servPort, q->tcp ? q->tcp->sock : mDNSNULL, mDNSNULL, mDNSfalse);
4764 // reached the end of DNS server list, we need to try again from the beginning. Ideally we should try just the
4765 // servers that did not respond, but for simplicity we try all the servers. Once we reached the end of list, we
4788 mDNSu8 *end = m->omsg.data;
4796 end = putQuestion(&m->omsg, m->omsg.data, m->omsg.data + AbsoluteMaxDNSMessageData, &q->qname, q->qtype, q->qclass);
4800 end = DNSProxySetAttributes(q, &m->omsg.h, &m->omsg, end, m->omsg.data + AbsoluteMaxDNSMessageData);
4802 end = putDNSSECOption(&m->omsg, end, m->omsg.data + AbsoluteMaxDNSMessageData);
4811 end = putQuestion(&m->omsg, m->omsg.data, m->omsg.data + AbsoluteMaxDNSMessageData, DNSRelayTestQuestion, kDNSType_PTR, kDNSClass_IN);
4815 if (end > m->omsg.data && (q->qDNSServer->teststate != DNSServer_Failed || NoTestQuery(q)))
4839 err = mDNSSendDNSMessage(m, &m->omsg, end, q->qDNSServer->interface, q->LocalSocket, &q->qDNSServer->addr, q->qDNSServer->port, mDNSNULL, mDNSNULL, q->UseBackgroundTrafficClass);
4900 // If we reached the end of list while picking DNS servers, then we don't want to deactivate the
5272 // move to end of list so that we maintain the same order
5910 mDNSexport uDNS_LLQType uDNS_recvLLQResponse(mDNS *const m, const DNSMessage *const msg, const mDNSu8 *const end,
5915 (void) end;