Home
last modified time | relevance | path

Searched refs:mDNSu16 (Results 1 – 16 of 16) sorted by relevance

/external/mdnsresponder/mDNSCore/
DmDNSEmbeddedAPI.h238 typedef unsigned short mDNSu16; typedef
276 typedef union { mDNSu8 b[ 2]; mDNSu16 NotAnInteger; } mDNSOpaque16;
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;
472 mDNSu16 numQuestions;
473 mDNSu16 numAnswers;
474 mDNSu16 numAuthorities;
475 mDNSu16 numAdditionals;
501 mDNSu16 replylen;
[all …]
DDNSCommon.c145 mDNSexport char *DNSTypeName(mDNSu16 rrtype) in DNSTypeName()
248 mDNSu16 i; in GetRRDisplayString_rdb()
373 mDNSu16 l1 = DomainNameLength(d1); in SameDomainNameCS()
374 mDNSu16 l2 = DomainNameLength(d2); in SameDomainNameCS()
422 mDNSexport mDNSu16 DomainNameLengthLimit(const domainname *const name, const mDNSu8 *limit) in DomainNameLengthLimit()
427 if (*src == 0) return((mDNSu16)(src - name->c + 1)); in DomainNameLengthLimit()
442 mDNSexport mDNSu16 CompressedDomainNameLength(const domainname *const name, const domainname *paren… in CompressedDomainNameLength()
449 …if (parent && SameDomainName((const domainname *)src, parent)) return((mDNSu16)(src - name->c + 2)… in CompressedDomainNameLength()
453 return((mDNSu16)(src - name->c + 1)); in CompressedDomainNameLength()
890 mDNSu16 l = name->c[0]; in LabelContainsSuffix()
[all …]
DDNSCommon.h111 extern mDNSu16 CompressedDomainNameLength(const domainname *const name, const domainname *parent);
169 extern mDNSu16 GetRDLength(const ResourceRecord *const rr, mDNSBool estimate);
170 extern mDNSBool ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd);
195 extern mDNSu8 *PutResourceRecordTTLWithLimit(DNSMessage *const msg, mDNSu8 *ptr, mDNSu16 *count, Re…
212 …u8 *ptr, const mDNSu8 *const limit, const domainname *const name, mDNSu16 rrtype, mDNSu16 rrclass);
217 …leteRRSetWithLimit(DNSMessage *msg, mDNSu8 *ptr, const domainname *name, mDNSu16 rrtype, mDNSu8 *l…
233 extern void SetNewRData(ResourceRecord *const rr, RData *NewRData, mDNSu16 rdlength);
DuDNS.h124 …iveNATPMPPacket(mDNS *m, const mDNSInterfaceID InterfaceID, mDNSu8 *pkt, mDNSu16 len); // Called f…
125 extern void natTraversalHandleAddressReply(mDNS *const m, mDNSu16 err, mDNSv4Addr ExtAddr);
126 …y(mDNS *const m, NATTraversalInfo *n, const mDNSInterfaceID InterfaceID, mDNSu16 err, mDNSIPPort e…
DDNSDigest.c40 mDNSlocal mDNSu16 NToH16(mDNSu8 * bytes) in NToH16()
42 return (mDNSu16)((mDNSu16)bytes[0] << 8 | (mDNSu16)bytes[1]); in NToH16()
1331 mDNSexport void DNSDigest_SignMessage(DNSMessage *msg, mDNSu8 **end, DomainAuthInfo *info, mDNSu16 in DNSDigest_SignMessage()
1342 mDNSu16 numAdditionals = (mDNSu16)((mDNSu16)countPtr[0] << 8 | countPtr[1]); in DNSDigest_SignMessage()
1422 tsig.resrec.rdlength = (mDNSu16)(rdata - tsig.resrec.rdata->u.data); in DNSDigest_SignMessage()
1431 … *msg, mDNSu8 *end, LargeCacheRecord * lcr, DomainAuthInfo *info, mDNSu16 * rcode, mDNSu16 * tcode) in DNSDigest_VerifyMessage()
1442 mDNSu16 fudge; in DNSDigest_VerifyMessage()
1483 then = (mDNSs32)NToH32(utc48 + sizeof(mDNSu16)); in DNSDigest_VerifyMessage()
1487 ptr += sizeof(mDNSu16); in DNSDigest_VerifyMessage()
1504 ptr += sizeof(mDNSu16); in DNSDigest_VerifyMessage()
DmDNS.c254 mDNSu16 namelen = DomainNameLength(rr->name); in GetAuthGroup()
1350 mDNSu16 OldRDLen = rr->resrec.rdlength; in CompleteRDataUpdate()
1892 mDNSlocal mDNSu16 CheckSum(const void *const data, mDNSs32 length, mDNSu32 sum) in CheckSum()
1894 const mDNSu16 *ptr = data; in CheckSum()
1901 mDNSlocal mDNSu16 IPv6CheckSum(const mDNSv6Addr *const src, const mDNSv6Addr *const dst, const mDNS… in IPv6CheckSum()
2260 mDNSu16 oldrdlength = rr->resrec.rdlength; in SendResponses()
2568 mDNSu16 ucbit = (mDNSu16)(ucast ? kDNSQClass_UnicastResponse : 0); in BuildQuestion()
2570 …uestion(query, *queryptr, limit - *answerforecast, &q->qname, q->qtype, (mDNSu16)(q->qclass | ucbi… in BuildQuestion()
3118 mDNSu16 ucbit = (mDNSu16)(ucast ? kDNSQClass_UnicastResponse : 0); in SendQueries()
3122 …n(&m->omsg, queryptr, limit - forecast, ar->resrec.name, kDNSQType_ANY, (mDNSu16)(ar->resrec.rrcla… in SendQueries()
[all …]
DuDNS.c470 mDNSexport void natTraversalHandleAddressReply(mDNS *const m, mDNSu16 err, mDNSv4Addr ExtAddr) in natTraversalHandleAddressReply()
472 static mDNSu16 last_err = 0; in natTraversalHandleAddressReply()
517 …y(mDNS *const m, NATTraversalInfo *n, const mDNSInterfaceID InterfaceID, mDNSu16 err, mDNSIPPort e… in natTraversalHandlePortMapReply()
738 mDNSlocal mDNSu16 GetLLQEventPort(const mDNS *const m, const mDNSAddr *const dst) in GetLLQEventPort()
1079 tcpInfo->replylen = (mDNSu16)((mDNSu16)lenptr[0] << 8 | lenptr[1]); in tcpCallback()
1459 mDNSlocal mStatus GetZoneData_StartQuery(mDNS *const m, ZoneData *zd, mDNSu16 qtype);
1567 mDNSlocal mStatus GetZoneData_StartQuery(mDNS *const m, ZoneData *zd, mDNSu16 qtype) in GetZoneData_StartQuery()
3288 …void uDNS_ReceiveNATPMPPacket(mDNS *m, const mDNSInterfaceID InterfaceID, mDNSu8 *pkt, mDNSu16 len) in uDNS_ReceiveNATPMPPacket()
3300 …AddrReply->err = (mDNSu16) ( (mDNSu16)pkt[2] … in uDNS_ReceiveNATPMPPacket()
/external/mdnsresponder/mDNSShared/
Ddnsextd.h83 mDNSu16 type;
97 mDNSu16 qtype;
Ddnsextd.c209 pkt->msg.h.numQuestions = (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]); in HdrNToH()
210 pkt->msg.h.numAnswers = (mDNSu16)((mDNSu16)ptr[2] << 8 | ptr[3]); in HdrNToH()
211 pkt->msg.h.numAuthorities = (mDNSu16)((mDNSu16)ptr[4] << 8 | ptr[5]); in HdrNToH()
212 pkt->msg.h.numAdditionals = (mDNSu16)((mDNSu16)ptr[6] << 8 | ptr[7]); in HdrNToH()
218 mDNSu16 numQuestions = pkt->msg.h.numQuestions; in HdrHToN()
219 mDNSu16 numAnswers = pkt->msg.h.numAnswers; in HdrHToN()
220 mDNSu16 numAuthorities = pkt->msg.h.numAuthorities; in HdrHToN()
221 mDNSu16 numAdditionals = pkt->msg.h.numAdditionals; in HdrHToN()
354 mDNSu16 len = htons((mDNSu16)pkt->len); in SendPacket()
422 mDNSu16 msglen = 0; in RecvPacket()
[all …]
Ddnsextd_parser.y563 d->addr.sin_port = htons( ( mDNSu16 ) info->source_port ); in SetupOptions()
573 d->ns_addr.sin_port = htons( ( mDNSu16 ) info->server_port ); in SetupOptions()
Duds_daemon.c173 mDNSu16 txtlen;
492 mDNSu16 type = get_uint16(&request->msgptr, request->msgend); in read_rr_from_ipc_msg()
493 mDNSu16 class = get_uint16(&request->msgptr, request->msgend); in read_rr_from_ipc_msg()
494 mDNSu16 rdlen = get_uint16(&request->msgptr, request->msgend); in read_rr_from_ipc_msg()
1091 …d_to_service(request_state *request, service_instance *instance, mDNSu16 rrtype, mDNSu16 rdlen, co… in add_record_to_service()
1101 extra->r.rdatastorage.MaxRDLength = (mDNSu16) size; in add_record_to_service()
1123 mDNSu16 rrtype = get_uint16(&request->msgptr, request->msgend); in handle_add_request()
1124 mDNSu16 rdlen = get_uint16(&request->msgptr, request->msgend); in handle_add_request()
1156 mDNSlocal void update_callback(mDNS *const m, AuthRecord *const rr, RData *oldrd, mDNSu16 oldrdlen) in update_callback()
1183 mDNSlocal mStatus update_record(AuthRecord *rr, mDNSu16 rdlen, const char *rdata, mDNSu32 ttl, cons… in update_record()
[all …]
/external/mdnsresponder/mDNSPosix/
DNetMonitor.c297 mDNSlocal void SendUnicastQuery(mDNS *const m, HostEntry *entry, domainname *name, mDNSu16 rrtype, … in SendUnicastQuery()
406 mDNSlocal void recordstat(HostEntry *entry, const domainname *fqdn, int op, mDNSu16 rrtype) in recordstat()
629 mDNSu16 ucbit = q.qclass & kDNSQClass_UnicastResponse; in DisplayQuery()
791 msg->h.numQuestions = (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]); in mDNSCoreReceive()
792 msg->h.numAnswers = (mDNSu16)((mDNSu16)ptr[2] << 8 | ptr[3]); in mDNSCoreReceive()
793 msg->h.numAuthorities = (mDNSu16)((mDNSu16)ptr[4] << 8 | ptr[5]); in mDNSCoreReceive()
794 msg->h.numAdditionals = (mDNSu16)((mDNSu16)ptr[6] << 8 | ptr[7]); in mDNSCoreReceive()
DIdentify.c209 mDNSlocal mStatus StartQuery(DNSQuestion *q, char *qname, mDNSu16 qtype, const mDNSAddr *target, mD… in StartQuery()
237 mDNSlocal void DoOneQuery(DNSQuestion *q, char *qname, mDNSu16 qtype, const mDNSAddr *target, mDNSQ… in DoOneQuery()
249 mDNSlocal int DoQuery(DNSQuestion *q, char *qname, mDNSu16 qtype, const mDNSAddr *target, mDNSQuest… in DoQuery()
DResponder.c239 static mDNSu16 gServiceTextLen = 0;
421 mDNSu16 textLen, in RegisterOneService()
DProxyResponder.c133 const domainname *host, mDNSu16 PortAsNumber, int argc, char **argv) in RegisterService()
/external/mdnsresponder/mDNSWindows/
DmDNSWin32.c1434 port = mDNSOpaque16fromIntVal( ( mDNSu16 ) ( 0xC000 + mDNSRandom(0x3FFF) ) ); in mDNSPlatformUDPSocket()
4854 …, NULL, "_smb._tcp,_file", NULL, NULL, ( uint16_t ) port.NotAnInteger, ( mDNSu16 )( txtPtr - txtBu… in SMBRegistrationThread()