/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_parse.c | 84 int b, rdlength; local 94 NS_GET16(rdlength, ptr); 95 ptr += rdlength/*RData*/; 180 rr->rdlength = 0; 186 NS_GET16(rr->rdlength, handle->_msg_ptr); 187 if (handle->_msg_ptr + rr->rdlength > handle->_eom) 190 handle->_msg_ptr += rr->rdlength; 242 rr->rdlength = 0; 248 NS_GET16(rr->rdlength, handle->_msg_ptr); 249 if (handle->_msg_ptr + rr->rdlength > handl [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | DNSCommon.c | 358 *bitmaplen = rr->rdlength - (int)(p - rdb->data); 363 // Note slight bug: this code uses the rdlength from the ResourceRecord object, to display 371 mDNSu32 length = mDNS_snprintf(buffer, MaxMsg-1, "%4d %##s %s ", rr->rdlength, rr->name->c, DNSTypeName(rr->rrtype)); 373 if (!rr->rdlength && rr->rrtype != kDNSType_OPT) { mDNS_snprintf(buffer+length, RemSpc, "<< ZERO RDATA LENGTH >>"); return(buffer); } 391 while (t < rd->txt.c + rr->rdlength) 404 const rdataOPT *const end = (const rdataOPT *)&rd->data[rr->rdlength]; 451 bitmaplen = rr->rdlength - len; 493 bitmaplen = rr->rdlength - (int)(p - rd->data); 517 rr->rdlength - (len + RRSIG_FIXED_SIZE), ENC_BASE64); 523 DNSSECAlgName(rrkey->alg), (unsigned int)keytag((mDNSu8 *)rrkey, rr->rdlength)); 2038 ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd) argument 2699 SetNewRData(ResourceRecord *const rr, RData *NewRData, mDNSu16 rdlength) argument 2848 SetRData(const DNSMessage *const msg, const mDNSu8 *ptr, const mDNSu8 *end, LargeCacheRecord *const largecr, mDNSu16 rdlength) argument [all...] |
H A D | DNSCommon.h | 147 (r1)->rdlength == (r2)->rdlength && \ 155 (r1)->rdlength == (r2)->rdlength && \ 173 extern mDNSBool ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd); 243 extern void SetNewRData(ResourceRecord *const rr, RData *NewRData, mDNSu16 rdlength); 251 LargeCacheRecord *const largecr, mDNSu16 rdlength);
|
H A D | anonymous.c | 114 rr->rdlength = MCAST_NSEC3_RDLENGTH; 134 if (rr->rdlength < MCAST_NSEC3_RDLENGTH) 136 LogMsg("CopyNSEC3ResourceRecord: rdlength %d smaller than MCAST_NSEC3_RDLENGTH %d", rr->rdlength, MCAST_NSEC3_RDLENGTH); 140 neededLen = rr->rdlength + DomainNameLength(rr->name); 148 anonRR->rdatastorage.MaxRDLength = rr->rdlength; 149 mDNSPlatformMemCopy(anonRR->rdatastorage.u.data, rr->rdata->u.data, rr->rdlength); 151 name = (domainname *)(anonRR->rdatastorage.u.data + rr->rdlength);
|
H A D | dnssec.h | 40 mDNSu16 rdlength; member in struct:RRVerifier_struct
|
H A D | uDNS.c | 1014 opt->rdlength = sizeof(rdataOPT); // One option in this OPT record 1776 if (AddRecord == QC_addnocache && answer->rdlength == 0) return; // Don't care about transient failure indications 1785 if (answer->rdlength) 1825 if (!answer->rdlength && zd->ZonePrivate && zd->ZoneService != ZoneServiceQuery) 1833 if (answer->rdlength) 1857 if (answer->rdlength == 4) 2110 rr->resrec.rdlength = rr->resrec.rdestimate = 0; 2123 SetNewRData(&rr->resrec, mDNSNULL, 0); // Update rdlength, rdestimate, rdatahash 2533 if (answer->rdlength != 0) 2538 if (AddRecord && answer->rdlength ! 3141 int rdlength; local [all...] |
H A D | mDNS.c | 953 SetNewRData(&rr->resrec, mDNSNULL, 0); // Update rdlength, rdestimate, rdatahash 1384 if (rr->resrec.rrtype == kDNSType_TXT && rr->resrec.rdlength == 0) { rr->resrec.rdlength = 1; rr->resrec.rdata->u.txt.c[0] = 0; } 1388 SetTargetToHostName(m, rr); // Also sets rdlength and rdestimate for us, and calls InitializeLastAPTime(); 1403 rr->resrec.rdlength = GetRDLength(&rr->resrec, mDNSfalse); 1410 // Don't do this until *after* we've set rr->resrec.rdlength 1411 if (!ValidateRData(rr->resrec.rrtype, rr->resrec.rdlength, rr->resrec.rdata)) 1560 mDNSu16 OldRDLen = rr->resrec.rdlength; 1898 // 2 bytes for compressed name + type (2) class (2) TTL (4) rdlength (2) rdata (n) 1899 return (2 + 10 + rr->rdlength); [all...] |
H A D | uds_daemon.c | 718 rr->resrec.rdlength = rdlen; 1361 extra->r.resrec.rdlength = rdlen; 1453 if (ext.rdlength == oldrdlen && mDNSPlatformMemSame(&ext.rdata->u, &oldrd->u, oldrdlen)) goto exit; 2500 m->DeviceInfo.resrec.rdlength = initializeDeviceInfoTXT(m, m->DeviceInfo.resrec.rdata->u.data); 2767 len += req->u.resolve.txt->rdlength; 2782 put_uint16(req->u.resolve.txt->rdlength, &data); 2783 put_rdata (req->u.resolve.txt->rdlength, req->u.resolve.txt->rdata->u.data, &data); 3280 len += answer->rdlength; 3328 put_uint16(answer->rdlength, &data); 3331 if (answer->rdlength) [all...] |
H A D | DNSDigest.c | 1412 tsig.resrec.rdlength = (mDNSu16)(rdata - tsig.resrec.rdata->u.data);
|
H A D | mDNSEmbeddedAPI.h | 1400 mDNSu16 rdlength; // Size of the raw rdata, in bytes, in the on-the-wire format member in struct:ResourceRecord_struct
|
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_netbios_name.c | 565 BE_OUT16(heap, nrr[i].rdlength); 568 if ((tmp = nrr[i].rdlength) > 0) { 833 nrr[i].rdlength = BE_IN16(scan); scan += 2; 835 if ((n = nrr[i].rdlength) > 0) { 1160 answer.rdlength = original_packet->additional->rdlength; 1248 answer.rdlength = original_packet->additional->rdlength; 1352 answer.rdlength = 0; 1355 answer.rdlength [all...] |
H A D | smbns_netbios.h | 199 unsigned short rdlength; member in struct:resource_record
|
/illumos-gate/usr/src/head/arpa/ |
H A D | nameser.h | 176 uint16_t rdlength; member in struct:__ns_rr 189 int rdlength; member in struct:__ns_rr2 200 #define ns_rr_rdlen(rr) ((rr).rdlength + 0)
|