Lines Matching refs:mDNSu8
571 #define DefaultProbeCountForTypeUnique ((mDNSu8)3)
572 …untForRecordType(X) ((X) == kDNSRecordTypeUnique ? DefaultProbeCountForTypeUnique : (mDNSu8)0)
574 #define InitialAnnounceCount ((mDNSu8)8)
579 #define GoodbyeCount ((mDNSu8)3)
580 #define WakeupCount ((mDNSu8)18)
583 #define InitialWakeOnResolveCount ((mDNSu8)3)
1363 mDNSu8 RecordType = rr->resrec.RecordType; in mDNS_Deregister_internal()
1695 { rr->NR_AnswerTo = (mDNSu8*)~0; *nrp = rr; nrp = &rr->NextResponse; } in SendDelayedUnicastResponse()
1704 mDNSu8 *responseptr = m->omsg.data; in SendDelayedUnicastResponse()
1705 mDNSu8 *newptr; in SendDelayedUnicastResponse()
1783 mDNSlocal mStatus GetLabelDecimalValue(const mDNSu8 *const src, mDNSu8 *dst) in GetLabelDecimalValue()
1793 *dst = (mDNSu8)val; in GetLabelDecimalValue()
1833 a->ip.v6.b[15-i] = (mDNSu8)((h << 4) | l); in GetIPv6FromName()
1852 mDNSlocal void SendARP(mDNS *const m, const mDNSu8 op, const AuthRecord *const rr, in SendARP()
1856 mDNSu8 *ptr = m->omsg.data; in SendARP()
1901 …CheckSum(const mDNSv6Addr *const src, const mDNSv6Addr *const dst, const mDNSu8 protocol, const vo… in IPv6CheckSum()
1917 mDNSlocal void SendNDP(mDNS *const m, const mDNSu8 op, const mDNSu8 flags, const AuthRecord *const … in SendNDP()
1922 mDNSu8 *ptr = m->omsg.data; in SendNDP()
2238 mDNSu8 *responseptr = m->omsg.data; in SendResponses()
2239 mDNSu8 *newptr; in SendResponses()
2261 mDNSu8 active = (mDNSu8) in SendResponses()
2564 mDNSlocal mDNSBool BuildQuestion(mDNS *const m, DNSMessage *query, mDNSu8 **queryptr, DNSQuestion *… in BuildQuestion()
2569 const mDNSu8 *const limit = query->data + NormalMaxDNSMessageData; in BuildQuestion()
2570 …mDNSu8 *newptr = putQuestion(query, *queryptr, limit - *answerforecast, &q->qname, q->qtype, (mDNS… in BuildQuestion()
2893 mDNSu8 *qptr = m->omsg.data; in SendQueries()
2894 const mDNSu8 *const limit = m->omsg.data + sizeof(m->omsg.data); in SendQueries()
3081 mDNSu8 *queryptr = m->omsg.data; 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()
3164 mDNSu8 *newptr = PutResourceRecord(&m->omsg, queryptr, &m->omsg.h.numAuthorities, &ar->resrec); in SendQueries()
3259 mDNSu8 *ptr = m->omsg.data; in SendWakeup()
4596 …!SameDomainLabel(question->qname.c, (const mDNSu8 *)"\x0c_autotunnel6")&& question->QuestionCallba… in ActivateUnicastQuery()
4851 mDNSu8 *p = m->omsg.data; in SendSPSRegistrationForOwner()
4862 mDNSu8 *newptr; in SendSPSRegistrationForOwner()
4863 …const mDNSu8 *const limit = m->omsg.data + (m->omsg.h.mDNS_numUpdates ? NormalMaxDNSMessageData : … in SendSPSRegistrationForOwner()
5146 mDNSu8 oldstate = m->SPSState; in mDNSCoreMachineSleep()
5417 mDNSlocal mDNSu8 *GenerateUnicastResponse(const DNSMessage *const query, const mDNSu8 *const end, in GenerateUnicastResponse()
5420 mDNSu8 *responseptr = response->data; in GenerateUnicastResponse()
5421 const mDNSu8 *const limit = response->data + sizeof(response->data); in GenerateUnicastResponse()
5422 const mDNSu8 *ptr = query->data; in GenerateUnicastResponse()
5462 mDNSu8 *p = PutResourceRecordTTL(response, responseptr, &response->h.numAnswers, &rr->resrec, in GenerateUnicastResponse()
5474 mDNSu8 *p = PutResourceRecordTTL(response, responseptr, &response->h.numAdditionals, &rr->resrec, in GenerateUnicastResponse()
5490 mDNSu8 ourdata[256], *ourptr = ourdata, *ourend; in CompareRData()
5491 mDNSu8 pktdata[256], *pktptr = pktdata, *pktend; in CompareRData()
5596 mDNSlocal void ResolveSimultaneousProbe(mDNS *const m, const DNSMessage *const query, const mDNSu8 … in ResolveSimultaneousProbe()
5600 const mDNSu8 *ptr = LocateAuthorities(query, end); in ResolveSimultaneousProbe()
5730 mDNSlocal mDNSu8 *ProcessQuery(mDNS *const m, const DNSMessage *const query, const mDNSu8 *const en… in ProcessQuery()
5743 const mDNSu8 *ptr; in ProcessQuery()
5744 mDNSu8 *responseptr = mDNSNULL; in ProcessQuery()
5835 rr->NR_AnswerTo = (mDNSu8*)~0; in ProcessQuery()
5837 else if (!rr->NR_AnswerTo) rr->NR_AnswerTo = LegacyQuery ? ptr : (mDNSu8*)~1; in ProcessQuery()
6033 if (rr->NR_AnswerTo == (mDNSu8*)~1) rr->NR_AnswerTo = (mDNSu8*)~0; in ProcessQuery()
6037 if (rr->NR_AnswerTo == (mDNSu8*)~0) SendMulticastResponse = mDNStrue; in ProcessQuery()
6038 else if (rr->NR_AnswerTo == (mDNSu8*)~1) SendUnicastResponse = mDNStrue; in ProcessQuery()
6073 else if (rr->NR_AdditionalTo && rr->NR_AdditionalTo->NR_AnswerTo == (mDNSu8*)~0) in ProcessQuery()
6216 mDNSlocal void mDNSCoreReceiveQuery(mDNS *const m, const DNSMessage *const msg, const mDNSu8 *const… in mDNSCoreReceiveQuery()
6220 mDNSu8 *responseend = mDNSNULL; in mDNSCoreReceiveQuery()
6470 const DNSMessage *const response, const mDNSu8 *end, in mDNSCoreReceiveResponse()
6492 const mDNSu8 *ptr = response->data; in mDNSCoreReceiveResponse()
6532 mDNSu8 rcode = (mDNSu8)(response->h.flags.b[1] & kDNSFlag1_RC_Mask); in mDNSCoreReceiveResponse()
6593 const mDNSu8 RecordType = in mDNSCoreReceiveResponse()
6594 (i < firstauthority ) ? (mDNSu8)kDNSRecordTypePacketAns : in mDNSCoreReceiveResponse()
6595 (i < firstadditional) ? (mDNSu8)kDNSRecordTypePacketAuth : (mDNSu8)kDNSRecordTypePacketAdd; in mDNSCoreReceiveResponse()
7234 const DNSMessage *const msg, const mDNSu8 *end, in mDNSCoreReceiveUpdate()
7240 mDNSu8 *p = m->omsg.data; in mDNSCoreReceiveUpdate()
7243 const mDNSu8 *ptr; in mDNSCoreReceiveUpdate()
7320 …mDNSu8 RecordType = m->rec.r.resrec.RecordType & kDNSRecordTypePacketUniqueMask ? kDNSRecordTypeUn… in mDNSCoreReceiveUpdate()
7380 mDNSlocal void mDNSCoreReceiveUpdateR(mDNS *const m, const DNSMessage *const msg, const mDNSu8 *end… in mDNSCoreReceiveUpdateR()
7385 const mDNSu8 *ptr = LocateOptRR(msg, end, DNSOpt_LeaseData_Space); in mDNSCoreReceiveUpdateR()
7476 mDNSexport void mDNSCoreReceive(mDNS *const m, void *const pkt, const mDNSu8 *const end, in mDNSCoreReceive()
7482 const mDNSu8 StdQ = kDNSFlag0_QR_Query | kDNSFlag0_OP_StdQuery; in mDNSCoreReceive()
7483 const mDNSu8 StdR = kDNSFlag0_QR_Response | kDNSFlag0_OP_StdQuery; in mDNSCoreReceive()
7484 const mDNSu8 UpdQ = kDNSFlag0_QR_Query | kDNSFlag0_OP_Update; in mDNSCoreReceive()
7485 const mDNSu8 UpdR = kDNSFlag0_QR_Response | kDNSFlag0_OP_Update; in mDNSCoreReceive()
7486 mDNSu8 QR_OP; in mDNSCoreReceive()
7487 mDNSu8 *ptr = mDNSNULL; in mDNSCoreReceive()
7498 LNT_ConfigureRouterInfo(m, InterfaceID, pkt, (mDNSu16)(end - (mDNSu8 *)pkt)); in mDNSCoreReceive()
7506 uDNS_ReceiveNATPMPPacket(m, InterfaceID, pkt, (mDNSu16)(end - (mDNSu8 *)pkt)); in mDNSCoreReceive()
7516 if ((unsigned)(end - (mDNSu8 *)pkt) < sizeof(DNSMessageHeader)) in mDNSCoreReceive()
7518 …ngth %d too short", srcaddr, mDNSVal16(srcport), dstaddr, mDNSVal16(dstport), end - (mDNSu8 *)pkt); in mDNSCoreReceive()
7521 QR_OP = (mDNSu8)(msg->h.flags.b[0] & kDNSFlag0_QROP_Mask); in mDNSCoreReceive()
7523 ptr = (mDNSu8 *)&msg->h.numQuestions; in mDNSCoreReceive()
7555 …s.b[1], srcaddr, mDNSVal16(srcport), dstaddr, mDNSVal16(dstport), end - (mDNSu8 *)pkt, InterfaceID… in mDNSCoreReceive()
7559 while (i<end - (mDNSu8 *)pkt) in mDNSCoreReceive()
7563 …do if (i<end - (mDNSu8 *)pkt) p += mDNS_snprintf(p, sizeof(buffer), " %02X", ((mDNSu8 *)pkt)[i]); … in mDNSCoreReceive()
9128 …if (rr->AnnounceCount > rr->UpdateCredits + 1) rr->AnnounceCount = (mDNSu8)(rr->UpdateCredits + 1); in mDNS_Update()
9222 mDNSu8 *p = set->RR_HINFO.resrec.rdata->u.data; in AdvertiseInterface()
9438 set->IPv4Available = (mDNSu8)(set->ip.type == mDNSAddrType_IPv4 && set->McastTxRx); in mDNS_RegisterInterface()
9439 set->IPv6Available = (mDNSu8)(set->ip.type == mDNSAddrType_IPv6 && set->McastTxRx); in mDNS_RegisterInterface()
9493 const mDNSu8 numannounce = flapping ? (mDNSu8)1 : InitialAnnounceCount; in mDNS_RegisterInterface()
9770 const domainname *const host, mDNSIPPort port, const mDNSu8 txtinfo[], mDNSu16 txtlen, in mDNS_RegisterService()
9778 …mDNSu8 recordType = (flags & regFlagKnownUnique) ? kDNSRecordTypeKnownUnique : kDNSRecordTypeUniqu… in mDNS_RegisterService()
10278 const IPv6NDP *const ndp, const mDNSu8 *const end, const mDNSInterfaceID InterfaceID) in mDNSCoreReceiveRawND()
10348 …DNSEthAddr *const sha, const mDNSAddr *const src, const mDNSAddr *const dst, const mDNSu8 protocol, in mDNSCoreReceiveRawTransportPacket()
10349 …const mDNSu8 *const p, const TransportLayerPacket *const t, const mDNSu8 *const end, const mDNSInt… in mDNSCoreReceiveRawTransportPacket()
10401 if (ikelen >= sizeof(IKEHeader) && end >= ((mDNSu8 *)ike) + sizeof(IKEHeader)) in mDNSCoreReceiveRawTransportPacket()
10446 … const mDNSu8 *const tp = (protocol == 6) ? (const mDNSu8 *)"\x4_tcp" : (const mDNSu8 *)"\x4_udp"; in mDNSCoreReceiveRawTransportPacket()
10468 mDNSexport void mDNSCoreReceiveRawPacket(mDNS *const m, const mDNSu8 *const p, const mDNSu8 *const … in mDNSCoreReceiveRawPacket()
10491 const mDNSu8 *const trans = p + 14 + (pkt->v4.vlen & 0xF) * 4; in mDNSCoreReceiveRawPacket()
10501 const mDNSu8 *const trans = p + 54; in mDNSCoreReceiveRawPacket()
10513 name->c[0] = (mDNSu8)mDNS_snprintf((char*)name->c+1, 62, "%d-%d-%d-%d %#s", in ConstructSleepProxyServerName()
10527 m->SPSState = (mDNSu8)(m->SPSSocket != mDNSNULL); in SleepProxyServerCallback()
10535 (mDNSu8 *)"", 1, // TXT data, length in SleepProxyServerCallback()
10546 …DNSCoreBeSleepProxyServer_internal(mDNS *const m, mDNSu8 sps, mDNSu8 port, mDNSu8 marginalpower, m… in mDNSCoreBeSleepProxyServer_internal()
11131 t, t ? &t->addr : mDNSNULL, mDNSVal16(t ? t->port : zeroIPPort), t ? t->domain.c : (mDNSu8*)"", in uDNS_SetupDNSConfig()
11132 s, s ? &s->addr : mDNSNULL, mDNSVal16(s ? s->port : zeroIPPort), s ? s->domain.c : (mDNSu8*)"", in uDNS_SetupDNSConfig()