Lines Matching refs:rrtype

445 mDNSexport char *DNSTypeName(mDNSu16 rrtype)
447 switch (rrtype)
462 mDNS_snprintf(buffer, sizeof(buffer), "(%d)", rrtype);
475 mDNSu32 length = mDNS_snprintf(buffer, Max, "%4d %##s %s ", rr->rdlength, rr->name->c, DNSTypeName(rr->rrtype));
476 switch (rr->rrtype)
1153 // r1 has to be a full ResourceRecord including rrtype and rdlength
1154 // r2 is just a bare RDataBody, which MUST be the same rrtype and rdlength as r1
1157 switch(r1->rrtype)
1173 if (r1->rrtype != r2->rrtype) return(mDNSfalse);
1182 r1->rrtype == r2->rrtype &&
1194 if (rr->rrtype != kDNSType_CNAME && rr->rrtype != q->qtype && q->qtype != kDNSQType_ANY ) return(mDNSfalse);
1203 switch (rr->rrtype)
1218 default: debugf("Warning! Don't know how to get length of resource type %d", rr->rrtype);
1223 mDNSexport mDNSBool ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd)
1227 switch(rrtype)
1502 switch (rr->rrtype)
1538 default: debugf("putRData: Warning! Writing unknown resource type %d as raw data", rr->rrtype);
1555 LogMsg("PutResourceRecord ERROR! Attempt to put kDNSRecordTypeUnregistered %##s (%s)", rr->name->c, DNSTypeName(rr->rrtype));
1561 ptr[0] = (mDNSu8)(rr->rrtype >> 8);
1562 ptr[1] = (mDNSu8)(rr->rrtype & 0xFF);
1570 if (!endofrdata) { verbosedebugf("Ran out of space in PutResourceRecord for %##s (%s)", rr->name->c, DNSTypeName(rr->rrtype)); return(mDNSNULL); }
1579 else LogMsg("PutResourceRecordTTL: ERROR: No target count to update for %##s (%s)", rr->name->c, DNSTypeName(rr->rrtype));
1595 ptr[0] = (mDNSu8)(rr->resrec.rrtype >> 8); // Put type
1596 ptr[1] = (mDNSu8)(rr->resrec.rrtype & 0xFF);
1605 mDNSexport mDNSu8 *putQuestion(DNSMessage *const msg, mDNSu8 *ptr, const mDNSu8 *const limit, const domainname *const name, mDNSu16 rrtype, mDNSu16 rrclass)
1609 ptr[0] = (mDNSu8)(rrtype >> 8);
1610 ptr[1] = (mDNSu8)(rrtype & 0xFF);
1638 prereq.resrec.rrtype = kDNSQType_ANY;
1657 mDNSexport mDNSu8 *putDeleteRRSet(DNSMessage *msg, mDNSu8 *ptr, const domainname *name, mDNSu16 rrtype)
1664 ptr[0] = (mDNSu8)(rrtype >> 8);
1665 ptr[1] = (mDNSu8)(rrtype & 0xFF);
1680 mDNSu16 rrtype = kDNSQType_ANY;
1684 ptr[0] = (mDNSu8)(rrtype >> 8);
1685 ptr[1] = (mDNSu8)(rrtype & 0xFF);
1706 opt->rrtype = kDNSType_OPT;
1882 rr->resrec.rrtype = (mDNSu16) ((mDNSu16)ptr[0] << 8 | ptr[1]);
1901 switch (rr->resrec.rrtype)
1921 DNSTypeName(rr->resrec.rrtype), pktrdlength, rr->resrec.rdata->MaxRDLength);
1957 rr->resrec.rrtype, DNSTypeName(rr->resrec.rrtype), pktrdlength, rr->resrec.rdata->MaxRDLength);
1961 rr->resrec.rrtype, DNSTypeName(rr->resrec.rrtype));