Home
last modified time | relevance | path

Searched refs:rdlength (Results 1 – 13 of 13) sorted by relevance

/external/ipsec-tools/src/racoon/
Dgetcertsbyname.c125 int rdlength; local
163 rdlength = rr->rri_rdatas[i].rdi_length;
167 rdlength -= INT16SZ;
169 rdlength -= INT16SZ;
171 rdlength -= 1;
175 type, keytag, algorithm, rdlength);
180 rr->rri_flags, rdlength, cp);
211 int qdcount, ancount, rdlength; local
289 GETSHORT(rdlength, cp); /* RDLENGTH */
300 rdlength -= INT16SZ;
[all …]
/external/curl/lib/
Ddoh.c557 unsigned short rdlength, in rdata() argument
570 if(rdlength != 4) in rdata()
577 if(rdlength != 16) in rdata()
617 unsigned short rdlength; in doh_decode() local
680 rdlength = get16bit(doh, index); in doh_decode()
682 if(dohlen < (index + rdlength)) in doh_decode()
685 rc = rdata(doh, dohlen, rdlength, type, index, d); in doh_decode()
688 index += rdlength; in doh_decode()
706 rdlength = get16bit(doh, index); in doh_decode()
708 if(dohlen < (index + rdlength)) in doh_decode()
[all …]
/external/mdnsresponder/mDNSCore/
DDNSCommon.c179 …mDNSu32 length = mDNS_snprintf(buffer, MaxMsg-1, "%4d %##s %s ", rr->rdlength, rr->name->c, DNSTyp… in GetRRDisplayString_rdb()
181 …if (!rr->rdlength) { mDNS_snprintf(buffer+length, RemSpc, "<< ZERO RDATA LENGTH >>"); return(buffe… in GetRRDisplayString_rdb()
199 while (t < rd->txt.c + rr->rdlength) in GetRRDisplayString_rdb()
212 const rdataOPT *const end = (const rdataOPT *)&rd->data[rr->rdlength]; in GetRRDisplayString_rdb()
255 default: mDNS_snprintf(buffer+length, RemSpc, "RDLen %d: %s", rr->rdlength, rd->data); in GetRRDisplayString_rdb()
1113 int len = rr->rdlength; in RDataHashValue()
1206 default: return(mDNSPlatformMemSame(b1->data, b2->data, r1->rdlength)); in SameRDataBody()
1398 …if (rr->rrclass == kDNSQClass_ANY) return(rr->rdlength); // Used in update packets to mean "Delete… in GetRDLength()
1418 case kDNSType_DHCID:return(rr->rdlength); // Not self-describing, so have to just trust rdlength in GetRDLength()
1437 case kDNSType_OPT: return(rr->rdlength); in GetRDLength()
[all …]
DDNSCommon.h145 (r1)->rdlength == (r2)->rdlength && \
153 (r1)->rdlength == (r2)->rdlength && \
170 extern mDNSBool ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd);
233 extern void SetNewRData(ResourceRecord *const rr, RData *NewRData, mDNSu16 rdlength);
DuDNS.c718 opt->rdlength = sizeof(rdataOPT); // One option in this OPT record in putLLQ()
1469 …if (AddRecord == QC_addnocache && answer->rdlength == 0) return; // Don't care about transient fai… in GetZoneData_QuestionCallback()
1478 if (answer->rdlength) in GetZoneData_QuestionCallback()
1518 if (!answer->rdlength && zd->ZonePrivate && zd->ZoneService != ZoneServiceQuery) in GetZoneData_QuestionCallback()
1526 if (answer->rdlength) in GetZoneData_QuestionCallback()
1550 zd->Addr.ip.v4 = (answer->rdlength == 4) ? answer->rdata->u.ipv4 : zerov4Addr; in GetZoneData_QuestionCallback()
1790 rr->resrec.rdlength = rr->resrec.rdestimate = 0; in CompleteRecordNatMap()
2214 if (answer->rdlength != 0) in FoundStaticHostname()
2219 if (AddRecord && answer->rdlength != 0 && !SameDomainName(pktname, storedname)) in FoundStaticHostname()
2447 mDNSu8 *rdend = rd + m->rec.r.resrec.rdlength; in ParseTSIGError()
[all …]
DmDNS.c1196 …if (rr->resrec.rrtype == kDNSType_TXT && rr->resrec.rdlength == 0) { rr->resrec.rdlength = 1; rr->… in mDNS_Register_internal()
1215 rr->resrec.rdlength = GetRDLength(&rr->resrec, mDNSfalse); in mDNS_Register_internal()
1223 if (!ValidateRData(rr->resrec.rrtype, rr->resrec.rdlength, rr->resrec.rdata)) in mDNS_Register_internal()
1350 mDNSu16 OldRDLen = rr->resrec.rdlength; in CompleteRDataUpdate()
2260 mDNSu16 oldrdlength = rr->resrec.rdlength; in SendResponses()
2403 opt.resrec.rdlength = sizeof(rdataOPT); // One option in this OPT record in SendResponses()
2588 …rr->resrec.rdlength <= SmallRecordLimit && // which is small enough to sensibly fit in the pac… in BuildQuestion()
2684 …if (cr->resrec.rrtype == kDNSType_PTR && cr->resrec.rdlength >= 6) // If record is PTR type, … in FindSPSInCache1()
2822 …if (rr->resrec.rdlength <= SmallRecordLimit && // which is small enough to sensibly fit in the… in AccelerateThisQuery()
3177 opt.resrec.rdlength = sizeof(rdataOPT); // One option in this OPT record in SendQueries()
[all …]
DDNSDigest.c1422 tsig.resrec.rdlength = (mDNSu16)(rdata - tsig.resrec.rdata->u.data); in DNSDigest_SignMessage()
DmDNSEmbeddedAPI.h1097 mDNSu16 rdlength; // Size of the raw rdata, in bytes, in the on-the-wire format member
/external/mdnsresponder/mDNSShared/
Ddnsextd.c570 …if ( lcr.r.resrec.rrtype == kDNSType_OPT && lcr.r.resrec.rdlength >= DNSOpt_LLQData_Space && lcr.r… in IsLLQRequest()
789 if (orig->resrec.rdlength > InlineCacheRDSize) size += orig->resrec.rdlength - InlineCacheRDSize; in CopyCacheRecord()
875 mDNSPlatformMemZero(ptr+4, sizeof(rr->rroriginalttl) + sizeof(rr->rdlength)); // zero ttl/rdata in putRRSetDeletion()
1404 …r->rrtype == kDNSQType_ANY && !rr->rroriginalttl && rr->rrclass == kDNSQClass_ANY && !rr->rdlength) in UpdateLeaseTable()
1406 else if (!rr->rroriginalttl && rr->rrclass == kDNSQClass_ANY && !rr->rdlength) in UpdateLeaseTable()
1451 if (rr->rdlength > InlineCacheRDSize) allocsize += (rr->rdlength - InlineCacheRDSize); in UpdateLeaseTable()
1454 memcpy(&tmp->rr, &lcr.r, sizeof(CacheRecord) + rr->rdlength - InlineCacheRDSize); in UpdateLeaseTable()
1650 opt->resrec.rdlength = sizeof(rdataOPT); // One option in this OPT record in FormatLLQOpt()
2358rdlength < pkt->msg.h.numQuestions * DNSOpt_LLQData_Space) { Log("Malformatted LLQ from %s: OPT RR… in RecvLLQ()
Duds_daemon.c541 rr->resrec.rdlength = rdlen; in read_rr_from_ipc_msg()
1102 extra->r.resrec.rdlength = rdlen; in add_record_to_service()
1173 …if (ext.rdlength == oldrdlen && mDNSPlatformMemSame(&ext.rdata->u, &oldrd->u, oldrdlen)) goto exit; in update_callback()
2023 …m->DeviceInfo.resrec.rdlength = 7 + len; // One extra for the length byte at the start of … in UpdateDeviceInfoRecord()
2260 len += req->u.resolve.txt->rdlength; in resolve_result_callback()
2275 put_uint16(req->u.resolve.txt->rdlength, &data); in resolve_result_callback()
2276 put_rdata (req->u.resolve.txt->rdlength, req->u.resolve.txt->rdata->u.data, &data); in resolve_result_callback()
2712 if (q && AddRecord && (question->InterfaceID == mDNSInterface_Unicast) && !answer->rdlength) in queryrecord_result_callback()
2776 if (!q && !answer->InterfaceID && !answer->rdlength && AddRecord) in queryrecord_result_callback()
2809 len += answer->rdlength; in queryrecord_result_callback()
[all …]
Ddnssd_clientshim.c474 …x->SRV->rdata->u.srv.port.NotAnInteger, x->TXT->rdlength, (unsigned char*)x->TXT->rdata->u.txt.c, … in FoundServiceInfo()
636 …fullname, answer->rrtype, answer->rrclass, answer->rdlength, answer->rdata->u.data, answer->rrorig… in DNSServiceQueryRecordResponse()
/external/mdnsresponder/mDNSPosix/
DNetMonitor.c285 mDNSu8 *rdend = (mDNSu8 *)rd + pktrr->rdlength; in RecordHostInfo()
511 mDNSu8 *rdend = (mDNSu8 *)rd + pktrr->rdlength; in DisplayResourceRecord()
554 …mDNSu32 striplen = mDNS_snprintf(b, MaxMsg-1, "%4d %##s %s ", pktrr->rdlength, pktrr->name->c, DNS… in DisplayResourceRecord()
/external/openscreen/osp/impl/discovery/mdns/
Dmdns_responder_adapter_impl.cc956 auto lines = ParseTxtResponse(answer->rdata->u.txt.c, answer->rdlength); in TxtQueryCallback()