Home
last modified time | relevance | path

Searched refs:mDNSu8 (Results 1 – 17 of 17) sorted by relevance

/external/mdnsresponder/mDNSCore/
DDNSCommon.h115 extern mDNSu32 TruncateUTF8ToLength(mDNSu8 *string, mDNSu32 length, mDNSu32 max);
186 extern const mDNSu8 *FindCompressionPointer(const mDNSu8 *const base, const mDNSu8 *const end, cons…
187 extern mDNSu8 *putDomainNameAsLabels(const DNSMessage *const msg, mDNSu8 *ptr, const mDNSu8 *const …
188 extern mDNSu8 *putRData(const DNSMessage *const msg, mDNSu8 *ptr, const mDNSu8 *const limit, const …
195 extern mDNSu8 *PutResourceRecordTTLWithLimit(DNSMessage *const msg, mDNSu8 *ptr, mDNSu16 *count, Re…
212 extern mDNSu8 *putQuestion(DNSMessage *const msg, mDNSu8 *ptr, const mDNSu8 *const limit, const dom…
213 extern mDNSu8 *putZone(DNSMessage *const msg, mDNSu8 *ptr, mDNSu8 *limit, const domainname *zone, m…
214 extern mDNSu8 *putPrereqNameNotInUse(const domainname *const name, DNSMessage *const msg, mDNSu8 *c…
215 extern mDNSu8 *putDeletionRecord(DNSMessage *msg, mDNSu8 *ptr, ResourceRecord *rr);
216 extern mDNSu8 *putDeletionRecordWithLimit(DNSMessage *msg, mDNSu8 *ptr, ResourceRecord *rr, mDNSu8
[all …]
DDNSCommon.c198 const mDNSu8 *t = rd->txt.c; in GetRRDisplayString_rdb()
230 …length += mDNS_snprintf(buffer+length, RemSpc, " Seq %3d", (mDNSu8)opt->u.owner.seq); // Display a… in GetRRDisplayString_rdb()
272 mDNSlocal mDNSu32 mDNSMixRandomSeed(mDNSu32 seed, mDNSu8 iteration) in mDNSMixRandomSeed()
333 mDNSexport mDNSBool SameDomainLabel(const mDNSu8 *a, const mDNSu8 *b) in SameDomainLabel()
344 mDNSu8 ac = *a++; in SameDomainLabel()
345 mDNSu8 bc = *b++; in SameDomainLabel()
355 const mDNSu8 * a = d1->c; in SameDomainName()
356 const mDNSu8 * b = d2->c; in SameDomainName()
357 const mDNSu8 *const max = d1->c + MAX_DOMAIN_NAME; // Maximum that's valid in SameDomainName()
406 mDNSexport const mDNSu8 *LastLabel(const domainname *d) in LastLabel()
[all …]
DmDNSEmbeddedAPI.h236 typedef unsigned char mDNSu8; typedef
276 typedef union { mDNSu8 b[ 2]; mDNSu16 NotAnInteger; } mDNSOpaque16;
277 typedef union { mDNSu8 b[ 4]; mDNSu32 NotAnInteger; } mDNSOpaque32;
278 typedef packedunion { mDNSu8 b[ 6]; mDNSu16 w[3]; mDNSu32 l[1]; } mDNSOpaque48;
279 typedef union { mDNSu8 b[ 8]; mDNSu16 w[4]; mDNSu32 l[2]; } mDNSOpaque64;
280 typedef union { mDNSu8 b[16]; mDNSu16 w[8]; mDNSu32 l[4]; } mDNSOpaque128;
381 typedef struct { mDNSu8 c[ 64]; } domainlabel; // One label: length byte and up to 63 characters
386 typedef struct { mDNSu8 c[256]; } domainname; // Up to 256 bytes of length-prefixed domainlabels
388 typedef struct { mDNSu8 c[256]; } UTF8str255; // Null-terminated C string
486mDNSu8 data[AbsoluteMaxDNSMessageData]; // 40 (IPv6) + 8 (UDP) + 12 (DNS header) + 8940 (data) = 9…
[all …]
DDNSDigest.c40 mDNSlocal mDNSu16 NToH16(mDNSu8 * bytes) in NToH16()
45 mDNSlocal mDNSu32 NToH32(mDNSu8 * bytes) in NToH32()
1161 mDNSlocal mDNSs32 DNSDigest_Base64ToBin(const char *src, mDNSu8 *target, mDNSu32 targsize) in DNSDigest_Base64ToBin()
1185 target[tarindex] = (mDNSu8)((pos - Base64) << 2); in DNSDigest_Base64ToBin()
1194 target[tarindex+1] = (mDNSu8)(((pos - Base64) & 0x0f) << 4); in DNSDigest_Base64ToBin()
1204 target[tarindex+1] = (mDNSu8)(((pos - Base64) & 0x03) << 6); in DNSDigest_Base64ToBin()
1291 mDNSlocal void DNSDigest_ConstructHMACKey(DomainAuthInfo *info, const mDNSu8 *key, mDNSu32 len) in DNSDigest_ConstructHMACKey()
1294 mDNSu8 buf[MD5_LEN]; in DNSDigest_ConstructHMACKey()
1324 mDNSu8 keybuf[1024]; in DNSDigest_ConstructHMACKeyfromBase64()
1331 mDNSexport void DNSDigest_SignMessage(DNSMessage *msg, mDNSu8 **end, DomainAuthInfo *info, mDNSu16 … in DNSDigest_SignMessage()
[all …]
DuDNS.c52 mDNSu8 NumUnicastDNSServers = 0;
427 const mDNSu8 *end = (mDNSu8 *)&u + sizeof(NATAddrRequest); in uDNS_SendNATMsg()
431 mDNSu8 *p = (mDNSu8 *)&u.NATPortReq.NATReq_lease; in uDNS_SendNATMsg()
436 p[0] = (mDNSu8)((info->NATLease >> 24) & 0xFF); in uDNS_SendNATMsg()
437 p[1] = (mDNSu8)((info->NATLease >> 16) & 0xFF); in uDNS_SendNATMsg()
438 p[2] = (mDNSu8)((info->NATLease >> 8) & 0xFF); in uDNS_SendNATMsg()
439 p[3] = (mDNSu8)( info->NATLease & 0xFF); in uDNS_SendNATMsg()
440 end = (mDNSu8 *)&u + sizeof(NATPortMapRequest); in uDNS_SendNATMsg()
443 err = mDNSPlatformSendUDP(m, (mDNSu8 *)&u, end, 0, mDNSNULL, &m->Router, NATPMPPort); in uDNS_SendNATMsg()
702 mDNSlocal mDNSu8 *putLLQ(DNSMessage *const msg, mDNSu8 *ptr, const DNSQuestion *const question, con… in putLLQ()
[all …]
DuDNS.h91 extern void uDNS_ReceiveMsg(mDNS *const m, DNSMessage *const msg, const mDNSu8 *const end,
118 … uDNS_recvLLQResponse(mDNS *const m, const DNSMessage *const msg, const mDNSu8 *const end, const …
124 extern void uDNS_ReceiveNATPMPPacket(mDNS *m, const mDNSInterfaceID InterfaceID, mDNSu8 *pkt, mDNSu…
DmDNS.c571 #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()
[all …]
/external/mdnsresponder/mDNSPosix/
DNetMonitor.c285 mDNSu8 *rdend = (mDNSu8 *)rd + pktrr->rdlength; in RecordHostInfo()
286 mDNSu8 *hw = rd->txt.c; in RecordHostInfo()
287 mDNSu8 *sw = hw + 1 + (mDNSu32)hw[0]; in RecordHostInfo()
301 mDNSu8 *qptr = query.data; in SendUnicastQuery()
302 const mDNSu8 *const limit = query.data + sizeof(query.data); in SendUnicastQuery()
386 const mDNSu8 *src = fqdn->c; in ExtractServiceType()
387 mDNSu8 *dst = srvtype->c; in ExtractServiceType()
460 mDNSlocal const mDNSu8 *FindUpdate(mDNS *const m, const DNSMessage *const query, const mDNSu8 *ptr,… in FindUpdate()
466 const mDNSu8 *p2 = ptr; in FindUpdate()
474 mDNSlocal void DisplayPacketHeader(mDNS *const m, const DNSMessage *const msg, const mDNSu8 *const … in DisplayPacketHeader()
[all …]
DIdentify.c93 mDNSexport void mDNSCoreReceive(mDNS *const m, DNSMessage *const msg, const mDNSu8 *const end, in mDNSCoreReceive()
149 mDNSu8 *p = answer->rdata->u.data; in InfoCallback()
309 mDNSu8 *p = (mDNSu8 *)&s4; in main()
322 mDNSu8 *p = (mDNSu8 *)&s6; in main()
DResponder.c238 static mDNSu8 gServiceText[sizeof(RDataBody)];
420 const mDNSu8 text[], in RegisterOneService()
520 mDNSu8 text[sizeof(RDataBody)]; in RegisterServicesInFile()
DmDNSPosix.c157 mDNSexport mStatus mDNSPlatformSendUDP(const mDNS *const m, const void *const msg, const mDNSu8 *co… in mDNSPlatformSendUDP()
240 mDNSu8 ttl; in SocketDataReady()
325 mDNSCoreReceive(m, &packet, (mDNSu8 *)&packet + packetLen, in SocketDataReady()
403 mDNSexport void mDNSPlatformSendRawPacket(const void *const msg, const mDNSu8 *const end, mDNSInter… in mDNSPlatformSendRawPacket()
/external/mdnsresponder/mDNSShared/
Ddnsextd.c208 mDNSu8 *ptr = (mDNSu8 *)&pkt->msg.h.numQuestions; in HdrNToH()
222 mDNSu8 *ptr = (mDNSu8 *)&pkt->msg.h.numQuestions; in HdrHToN()
225 *ptr++ = (mDNSu8)(numQuestions >> 8); in HdrHToN()
226 *ptr++ = (mDNSu8)(numQuestions & 0xFF); in HdrHToN()
227 *ptr++ = (mDNSu8)(numAnswers >> 8); in HdrHToN()
228 *ptr++ = (mDNSu8)(numAnswers & 0xFF); in HdrHToN()
229 *ptr++ = (mDNSu8)(numAuthorities >> 8); in HdrHToN()
230 *ptr++ = (mDNSu8)(numAuthorities & 0xFF); in HdrHToN()
231 *ptr++ = (mDNSu8)(numAdditionals >> 8); in HdrHToN()
232 *ptr++ = (mDNSu8)(numAdditionals & 0xFF); in HdrHToN()
[all …]
Duds_daemon.c530 …(mDNSu8) ((flags & kDNSServiceFlagsShared) ? kDNSRecordTypeShared : kDNSRecordTypeUnique), artype,… in read_rr_from_ipc_msg()
1659 int newlen = TruncateUTF8ToLength((mDNSu8*)name, mDNSPlatformStrLen(name), MAX_DOMAIN_LABEL); in handle_regservice_request()
2017 mDNSu8 len = m->HIHardware.c[0] < 255 - 6 ? m->HIHardware.c[0] : 255 - 6; in UpdateDeviceInfoRecord()
2494 …_TRANSPORT(T) (SameDomainLabel((T)->c, (const mDNSu8 *)"\x4_tcp") || SameDomainLabel((T)->c, (cons… in SendAdditionalQuery()
2529 if (!q->ForceMCast && SameDomainLabel(LastLabel(&q->qname), (const mDNSu8 *)&localdomain)) in SendAdditionalQuery()
2834 if (!putRData(mDNSNULL, (mDNSu8 *)data, (mDNSu8 *)rep->rhdr + len, answer)) in queryrecord_result_callback()
2835 …LogMsg("queryrecord_result_callback putRData failed %d", (mDNSu8 *)rep->rhdr + len - (mDNSu8 *)dat… in queryrecord_result_callback()
2868 …if (!putRData(mDNSNULL, (mDNSu8 *)&sin->sin_addr, (mDNSu8 *)(&sin->sin_addr + sizeof(rdb->ipv4)), … in queryrecord_result_callback()
2880 …if (!putRData(mDNSNULL, (mDNSu8 *)&sin6->sin6_addr, (mDNSu8 *)(&sin6->sin6_addr + sizeof(rdb->ipv6… in queryrecord_result_callback()
2901 if (!putRData(mDNSNULL, cname.c, (mDNSu8 *)(cname.c + MAX_DOMAIN_NAME), answer)) in queryrecord_result_callback()
[all …]
Ddnsextd_parser.y454 mDNSu8 * ok; in ParseConfig()
/external/mdnsresponder/mDNSWindows/
DmDNSWin32.c163 mDNSlocal mDNSu8 IsWOMPEnabledForAdapter( const char * adapterName );
314 inMDNS->HIHardware.c[ 0 ] = ( mDNSu8 ) mDNSPlatformStrLen( &inMDNS->HIHardware.c[ 1 ] ); in mDNSPlatformInit()
321 inMDNS->HISoftware.c[ 0 ] = (mDNSu8) mDNSPlatformStrLen( &inMDNS->HISoftware.c[ 1 ] ); in mDNSPlatformInit()
1527 const mDNSu8 * const inMsgEnd, in mDNSPlatformSendUDP()
1541 n = (int)( inMsgEnd - ( (const mDNSu8 * const) inMsg ) ); in mDNSPlatformSendUDP()
1622 mDNSexport void mDNSPlatformSendRawPacket(const void *const msg, const mDNSu8 *const end, mDNSInter… in mDNSPlatformSendRawPacket()
1629 mDNSexport void mDNSPlatformReceiveRawPacket(const void *const msg, const mDNSu8 *const end, mDNSIn… in mDNSPlatformReceiveRawPacket()
2310 …inMDNS->nicelabel.c[ 0 ] = (mDNSu8) (strlen( utf8 ) < MAX_DOMAIN_LABEL ? strlen( utf8 ) : MAX_DOMA… in SetupNiceName()
2380 …tempLabel.c[ 0 ] = (mDNSu8) (strlen( tempString ) < MAX_DOMAIN_LABEL ? strlen( tempString ) : MAX_… in SetupHostName()
2833 ifd->interfaceInfo.Advertise = ( mDNSu8 ) inMDNS->AdvertiseLocalAddresses; in SetupInterface()
[all …]
DmDNSWin32.h180 mDNSu8 ifa_womp;
/external/mdnsresponder/mDNSWindows/SystemService/
DService.c151 static mDNSu8 SystemWakeForNetworkAccess( LARGE_INTEGER * timeout );
2195 mDNSu8
2201 mDNSu8 ok; in SystemWakeForNetworkAccess()
2226 ok = ( mDNSu8 ) GetSystemPowerStatus( &powerStatus ); in SystemWakeForNetworkAccess()
2232 ok = ( mDNSu8 ) IsWOMPEnabled( &gMDNSRecord ); in SystemWakeForNetworkAccess()
2239 ok = ( mDNSu8 ) mDNSCoreHaveAdvertisedMulticastServices( &gMDNSRecord ); in SystemWakeForNetworkAccess()