• Home
  • Raw
  • Download

Lines Matching refs:omsg

1704 		mDNSu8 *responseptr = m->omsg.data;  in SendDelayedUnicastResponse()
1706 InitializeDNSMessage(&m->omsg.h, zeroID, ResponseFlags); in SendDelayedUnicastResponse()
1714 newptr = PutResourceRecord(&m->omsg, responseptr, &m->omsg.h.numAnswers, &rr->resrec); in SendDelayedUnicastResponse()
1716 if (!newptr && m->omsg.h.numAnswers) break; // If packet full, send it now in SendDelayedUnicastResponse()
1731 newptr = PutResourceRecord(&m->omsg, responseptr, &m->omsg.h.numAdditionals, &rr->resrec); in SendDelayedUnicastResponse()
1735 if (newptr && m->omsg.h.numAnswers) rr->RequireGoodbye = mDNStrue; in SendDelayedUnicastResponse()
1743 if (m->omsg.h.numAnswers) in SendDelayedUnicastResponse()
1744 …mDNSSendDNSMessage(m, &m->omsg, responseptr, InterfaceID, mDNSNULL, dest, MulticastDNSPort, mDNSNU… in SendDelayedUnicastResponse()
1856 mDNSu8 *ptr = m->omsg.data; in SendARP()
1889 mDNSPlatformSendRawPacket(m->omsg.data, ptr, rr->resrec.InterfaceID); in SendARP()
1922 mDNSu8 *ptr = m->omsg.data; in SendNDP()
1997 m->omsg.data[0x13] = ptr - &m->omsg.data[0x36]; // Compute actual length in SendNDP()
1998 checksum.NotAnInteger = ~IPv6CheckSum(spa, v6dst, 0x3A, &m->omsg.data[0x36], m->omsg.data[0x13]); in SendNDP()
1999 m->omsg.data[0x38] = checksum.b[0]; in SendNDP()
2000 m->omsg.data[0x39] = checksum.b[1]; in SendNDP()
2002 mDNSPlatformSendRawPacket(m->omsg.data, ptr, rr->resrec.InterfaceID); in SendNDP()
2238 mDNSu8 *responseptr = m->omsg.data; in SendResponses()
2240 InitializeDNSMessage(&m->omsg.h, zeroID, ResponseFlags); in SendResponses()
2270 newptr = PutRR_OS_TTL(responseptr, &m->omsg.h.numAnswers, &rr->resrec, 0); in SendResponses()
2279 …newptr = PutRR_OS_TTL(responseptr, &m->omsg.h.numAnswers, &rr->resrec, active ? rr->resrec.rrorigi… in SendResponses()
2315 mDNSBool SendAdditional = (m->omsg.h.numAnswers > 0); in SendResponses()
2339 newptr = PutRR_OS(newptr, &m->omsg.h.numAdditionals, &rr->resrec); in SendResponses()
2377 newptr = PutRR_OS(responseptr, &m->omsg.h.numAdditionals, &nsec.resrec); in SendResponses()
2394 if (m->omsg.h.numAnswers || m->omsg.h.numAdditionals) in SendResponses()
2406 newptr = PutResourceRecord(&m->omsg, responseptr, &m->omsg.h.numAdditionals, &opt.resrec); in SendResponses()
2408 else if (m->omsg.h.numAnswers + m->omsg.h.numAuthorities + m->omsg.h.numAdditionals == 1) in SendResponses()
2410 …m->omsg.h.numQuestions, m->omsg.h.numAnswers, m->omsg.h.numAuthorities, m->omsg.h.numAdditionals, … in SendResponses()
2413 …m->omsg.h.numQuestions, m->omsg.h.numAnswers, m->omsg.h.numAuthorities, m->omsg.h.numAdditionals, … in SendResponses()
2420 m->omsg.h.numAdditionals, m->omsg.h.numAdditionals == 1 ? "" : "s", intf->InterfaceID); in SendResponses()
2422 …if (intf->IPv4Available) mDNSSendDNSMessage(m, &m->omsg, responseptr, intf->InterfaceID, mDNSNULL,… in SendResponses()
2423 …if (intf->IPv6Available) mDNSSendDNSMessage(m, &m->omsg, responseptr, intf->InterfaceID, mDNSNULL,… in SendResponses()
2893 mDNSu8 *qptr = m->omsg.data; in SendQueries()
2894 const mDNSu8 *const limit = m->omsg.data + sizeof(m->omsg.data); in SendQueries()
2900 InitializeDNSMessage(&m->omsg.h, q->TargetQID, QueryFlags); in SendQueries()
2901 qptr = putQuestion(&m->omsg, qptr, limit, &q->qname, q->qtype, q->qclass); in SendQueries()
2902 …mDNSSendDNSMessage(m, &m->omsg, qptr, mDNSInterface_Any, q->LocalSocket, &q->Target, q->TargetPort… in SendQueries()
3081 mDNSu8 *queryptr = m->omsg.data; in SendQueries()
3082 InitializeDNSMessage(&m->omsg.h, zeroID, QueryFlags); in SendQueries()
3097 …q->qname.c, DNSTypeName(q->qtype), queryptr - m->omsg.data, queryptr + answerforecast - m->omsg.da… in SendQueries()
3101 BuildQuestion(m, &m->omsg, &queryptr, q, &kalistptr, &answerforecast)) in SendQueries()
3119 …const mDNSu8 *const limit = m->omsg.data + (m->omsg.h.numQuestions ? NormalMaxDNSMessageData : Abs… in SendQueries()
3122 …mDNSu8 *newptr = putQuestion(&m->omsg, queryptr, limit - forecast, ar->resrec.name, kDNSQType_ANY,… in SendQueries()
3140 mDNSu8 *newptr = PutResourceRecordTTLWithLimit(&m->omsg, queryptr, &m->omsg.h.numAnswers, in SendQueries()
3141 …&ka->resrec, ka->resrec.rroriginalttl - SecsSinceRcvd, m->omsg.data + NormalMaxDNSMessageData - Ow… in SendQueries()
3145 …ka->resrec.name->c, DNSTypeName(ka->resrec.rrtype), queryptr - m->omsg.data, newptr - m->omsg.data… in SendQueries()
3154 if (m->omsg.h.numQuestions > 1) in SendQueries()
3155 LogMsg("SendQueries: Put %d answers; No more space for known answers", m->omsg.h.numAnswers); in SendQueries()
3156 m->omsg.h.flags.b[0] |= kDNSFlag0_TC; in SendQueries()
3164 mDNSu8 *newptr = PutResourceRecord(&m->omsg, queryptr, &m->omsg.h.numAuthorities, &ar->resrec); in SendQueries()
3170 if (queryptr > m->omsg.data) in SendQueries()
3181 queryptr = PutResourceRecordTTLWithLimit(&m->omsg, queryptr, &m->omsg.h.numAdditionals, in SendQueries()
3182 &opt.resrec, opt.resrec.rroriginalttl, m->omsg.data + AbsoluteMaxDNSMessageData); in SendQueries()
3185 …m->omsg.h.numQuestions, m->omsg.h.numAnswers, m->omsg.h.numAuthorities, m->omsg.h.numAdditionals, … in SendQueries()
3186 if (queryptr > m->omsg.data + NormalMaxDNSMessageData) in SendQueries()
3187 …if (m->omsg.h.numQuestions != 1 || m->omsg.h.numAnswers != 0 || m->omsg.h.numAuthorities != 1 || m… in SendQueries()
3189 m->omsg.data, m->omsg.data + NormalMaxDNSMessageData, queryptr, in SendQueries()
3190 …m->omsg.h.numQuestions, m->omsg.h.numAnswers, m->omsg.h.numAuthorities, m->omsg.h.numAdditionals, … in SendQueries()
3193 if ((m->omsg.h.flags.b[0] & kDNSFlag0_TC) && m->omsg.h.numQuestions > 1) in SendQueries()
3194 …eries: Should not have more than one question (%d) in a truncated packet", m->omsg.h.numQuestions); in SendQueries()
3196 m->omsg.h.numQuestions, m->omsg.h.numQuestions == 1 ? "" : "s", in SendQueries()
3197 m->omsg.h.numAnswers, m->omsg.h.numAnswers == 1 ? "" : "s", in SendQueries()
3198 m->omsg.h.numAuthorities, m->omsg.h.numAuthorities == 1 ? "" : "s", intf->InterfaceID); in SendQueries()
3199 …if (intf->IPv4Available) mDNSSendDNSMessage(m, &m->omsg, queryptr, intf->InterfaceID, mDNSNULL, &A… in SendQueries()
3200 …if (intf->IPv6Available) mDNSSendDNSMessage(m, &m->omsg, queryptr, intf->InterfaceID, mDNSNULL, &A… in SendQueries()
3259 mDNSu8 *ptr = m->omsg.data; in SendWakeup()
3282 mDNSPlatformSendRawPacket(m->omsg.data, ptr, InterfaceID); in SendWakeup()
3289 for (i=0; i<6; i++) m->omsg.data[i] = 0xFF; in SendWakeup()
3290 mDNSPlatformSendRawPacket(m->omsg.data, ptr, InterfaceID); in SendWakeup()
4851 mDNSu8 *p = m->omsg.data; in SendSPSRegistrationForOwner()
4856 …InitializeDNSMessage(&m->omsg.h, mDNSOpaque16IsZero(id) ? mDNS_NewMessageID(m) : id, UpdateReqFlag… in SendSPSRegistrationForOwner()
4863 …const mDNSu8 *const limit = m->omsg.data + (m->omsg.h.mDNS_numUpdates ? NormalMaxDNSMessageData : … in SendSPSRegistrationForOwner()
4866 …newptr = PutResourceRecordTTLWithLimit(&m->omsg, p, &m->omsg.h.mDNS_numUpdates, &rr->resrec, rr->r… in SendSPSRegistrationForOwner()
4869 …dSPSRegistration put %s FAILED %d/%d %s", intf->ifname, p - m->omsg.data, limit - m->omsg.data, AR… in SendSPSRegistrationForOwner()
4876 rr->updateid = m->omsg.h.id; in SendSPSRegistrationForOwner()
4883 if (!m->omsg.h.mDNS_numUpdates) break; in SendSPSRegistrationForOwner()
4903 … PutResourceRecordTTLWithLimit(&m->omsg, p, &m->omsg.h.numAdditionals, &opt.resrec, opt.resrec.rro… in SendSPSRegistrationForOwner()
4905 …LogMsg("SendSPSRegistration: Failed to put OPT record (%d updates) %s", m->omsg.h.mDNS_numUpdates,… in SendSPSRegistrationForOwner()
4911 …mDNSVal16(m->omsg.h.id), m->omsg.h.mDNS_numUpdates, p - m->omsg.data, &intf->SPSAddr[sps], mDNSVal… in SendSPSRegistrationForOwner()
4913 …err = mDNSSendDNSMessage(m, &m->omsg, p, intf->InterfaceID, mDNSNULL, &intf->SPSAddr[sps], intf->S… in SendSPSRegistrationForOwner()
6245 …PPort(srcport, MulticastDNSPort), mDNSAddrIsDNSMulticast(dstaddr), QueryWasLocalUnicast, &m->omsg); in mDNSCoreReceiveQuery()
6250 m->omsg.h.numQuestions, m->omsg.h.numQuestions == 1 ? "" : "s", in mDNSCoreReceiveQuery()
6251 m->omsg.h.numAnswers, m->omsg.h.numAnswers == 1 ? "" : "s", in mDNSCoreReceiveQuery()
6252 m->omsg.h.numAdditionals, m->omsg.h.numAdditionals == 1 ? "" : "s", in mDNSCoreReceiveQuery()
6254 …mDNSSendDNSMessage(m, &m->omsg, responseend, InterfaceID, mDNSNULL, srcaddr, srcport, mDNSNULL, mD… in mDNSCoreReceiveQuery()
7240 mDNSu8 *p = m->omsg.data; in mDNSCoreReceiveUpdate()
7275 InitializeDNSMessage(&m->omsg.h, msg->h.id, UpdateRespFlags); in mDNSCoreReceiveUpdate()
7286 m->omsg.h.flags.b[1] |= kDNSFlag1_RC_FormErr; in mDNSCoreReceiveUpdate()
7297 m->omsg.h.flags.b[1] |= kDNSFlag1_RC_Refused; in mDNSCoreReceiveUpdate()
7317 if (!ar) { m->omsg.h.flags.b[1] |= kDNSFlag1_RC_Refused; break; } in mDNSCoreReceiveUpdate()
7359 if (m->omsg.h.flags.b[1] & kDNSFlag1_RC_Mask) in mDNSCoreReceiveUpdate()
7373 … PutResourceRecordTTLWithLimit(&m->omsg, p, &m->omsg.h.numAdditionals, &opt.resrec, opt.resrec.rro… in mDNSCoreReceiveUpdate()
7377 …if (p) mDNSSendDNSMessage(m, &m->omsg, p, InterfaceID, m->SPSSocket, srcaddr, srcport, mDNSNULL, m… in mDNSCoreReceiveUpdate()