Home | History | Annotate | Download | only in mDNSCore

Lines Matching refs:omsg

750 	mDNSu8 *responsePtr = m->omsg.data;
781 InitializeDNSMessage(&m->omsg.h, q->TargetQID, uQueryFlags);
782 responsePtr = putLLQ(&m->omsg, responsePtr, q, llq);
785 mStatus err = mDNSSendDNSMessage(m, &m->omsg, responsePtr, mDNSInterface_Any, q->LocalSocket, &q->servAddr, q->servPort, mDNSNULL, mDNSNULL);
908 InitializeDNSMessage(&m->omsg.h, msg->h.id, ResponseFlags);
909 ackEnd = putLLQ(&m->omsg, m->omsg.data, q, &opt->u.llq);
910 if (ackEnd) mDNSSendDNSMessage(m, &m->omsg, ackEnd, mDNSInterface_Any, q->LocalSocket, srcaddr, srcport, mDNSNULL, mDNSNULL);
1378 InitializeDNSMessage(&m->omsg.h, q->TargetQID, uQueryFlags);
1379 end = putLLQ(&m->omsg, m->omsg.data, q, &llqData);
1382 mDNSSendDNSMessage(m, &m->omsg, end, mDNSInterface_Any, q->LocalSocket, &q->servAddr, q->servPort, mDNSNULL, mDNSNULL);
2568 ptr = putDeletionRecordWithLimit(&m->omsg, ptr, &rr->resrec, limit);
2593 if (!(ptr = putDeletionRecordWithLimit(&m->omsg, ptr, &rr->resrec, limit))) goto exit; // delete old rdata
2597 if (!(ptr = PutResourceRecordTTLWithLimit(&m->omsg, ptr, &m->omsg.h.mDNS_numUpdates, &rr->resrec, rr->resrec.rroriginalttl, limit))) goto exit;
2606 ptr = putDeleteRRSetWithLimit(&m->omsg, ptr, rr->resrec.name, rr->resrec.rrtype, limit);
2612 //ptr = putPrereqNameNotInUse(rr->resrec.name, &m->omsg, ptr, end);
2616 ptr = PutResourceRecordTTLWithLimit(&m->omsg, ptr, &m->omsg.h.mDNS_numUpdates, &rr->resrec, rr->resrec.rroriginalttl, limit);
2629 mDNSu8 *ptr = m->omsg.data;
2652 InitializeDNSMessage(&m->omsg.h, rr->updateid, UpdateReqFlags);
2655 ptr = putZone(&m->omsg, ptr, limit, rr->zone, mDNSOpaque16fromIntVal(rr->resrec.rrclass));
2662 ptr = putUpdateLeaseWithLimit(&m->omsg, ptr, DEFAULT_UPDATE_LEASE, limit);
2671 rr->tcp = MakeTCPConn(m, &m->omsg, ptr, kTCPSocketFlags_UseTLS, &rr->nta->Addr, rr->nta->Port, &rr->nta->Host, mDNSNULL, rr);
2677 err = mDNSSendDNSMessage(m, &m->omsg, ptr, mDNSInterface_Any, mDNSNULL, &rr->nta->Addr, rr->nta->Port, mDNSNULL, GetAuthInfoForName_internal(m, rr->resrec.name));
2771 if (info && info->AutoTunnel) limit = m->omsg.data + AbsoluteMaxDNSMessageData;
2772 else limit = m->omsg.data + NormalMaxDNSMessageData;
2775 ptr = putUpdateLeaseWithLimit(&m->omsg, ptr, DEFAULT_UPDATE_LEASE, limit);
2788 anchorRR->tcp = MakeTCPConn(m, &m->omsg, ptr, kTCPSocketFlags_UseTLS, &anchorRR->nta->Addr, anchorRR->nta->Port, &anchorRR->nta->Host, mDNSNULL, anchorRR);
2790 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);
2794 mStatus err = mDNSSendDNSMessage(m, &m->omsg, ptr, mDNSInterface_Any, mDNSNULL, &anchorRR->nta->Addr, anchorRR->nta->Port, mDNSNULL, info);
2796 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);
2907 mDNSu8 *next = m->omsg.data;
2953 next = m->omsg.data;
2965 InitializeDNSMessage(&m->omsg.h, msgid, UpdateReqFlags);
2978 next = putZone(&m->omsg, next, limit, rr->zone, mDNSOpaque16fromIntVal(rr->resrec.rrclass));
3578 mDNSu8 *limit = m->omsg.data + AbsoluteMaxDNSMessageData;
3594 InitializeDNSMessage(&m->omsg.h, q->TargetQID, uQueryFlags);
3595 end = putLLQ(&m->omsg, m->omsg.data, q, &llq);
3600 end = putHINFO(m, &m->omsg, end, q->AuthInfo, limit);
3605 DNSDigest_SignMessageHostByteOrder(&m->omsg, &end, q->AuthInfo);
3613 q->tcp = MakeTCPConn(m, &m->omsg, end, kTCPSocketFlags_UseTLS, &q->servAddr, q->servPort, &q->nta->Host, q, mDNSNULL);
3624 err = mDNSSendDNSMessage(m, &m->omsg, end, mDNSInterface_Any, q->LocalSocket, &q->servAddr, q->servPort, q->tcp ? q->tcp->sock : mDNSNULL, mDNSNULL);
3914 mDNSu8 *ptr = m->omsg.data;
3932 InitializeDNSMessage(&m->omsg.h, rr->updateid, UpdateReqFlags);
3935 ptr = putZone(&m->omsg, ptr, limit, rr->zone, mDNSOpaque16fromIntVal(rr->resrec.rrclass));
3948 rr->tcp = MakeTCPConn(m, &m->omsg, ptr, kTCPSocketFlags_UseTLS, &rr->nta->Addr, rr->nta->Port, &rr->nta->Host, mDNSNULL, rr);
3955 err = mDNSSendDNSMessage(m, &m->omsg, ptr, mDNSInterface_Any, mDNSNULL, &rr->nta->Addr, rr->nta->Port, mDNSNULL, GetAuthInfoForName_internal(m, rr->resrec.name));
4231 mDNSu8 *end = m->omsg.data;
4235 InitializeDNSMessage(&m->omsg.h, q->TargetQID, uQueryFlags);
4239 end = putQuestion(&m->omsg, m->omsg.data, m->omsg.data + AbsoluteMaxDNSMessageData, &q->qname, q->qtype, q->qclass);
4247 end = putQuestion(&m->omsg, m->omsg.data, m->omsg.data + AbsoluteMaxDNSMessageData, DNSRelayTestQuestion, kDNSType_PTR, kDNSClass_IN);
4248 q->qDNSServer->testid = m->omsg.h.id;
4251 if (end > m->omsg.data && (q->qDNSServer->teststate != DNSServer_Failed || NoTestQuery(q)))
4267 else err = mDNSSendDNSMessage(m, &m->omsg, end, q->qDNSServer->interface, q->LocalSocket, &q->qDNSServer->addr, q->qDNSServer->port, mDNSNULL, mDNSNULL);