Home | History | Annotate | Download | only in mDNSCore

Lines Matching defs:rrtype

145 mDNSexport char *DNSTypeName(mDNSu16 rrtype)
147 switch (rrtype)
165 mDNS_snprintf(buffer, sizeof(buffer), "(%d)", rrtype);
179 mDNSu32 length = mDNS_snprintf(buffer, MaxMsg-1, "%4d %##s %s ", rr->rdlength, rr->name->c, DNSTypeName(rr->rrtype));
183 switch (rr->rrtype)
992 mDNSu16 rrtype, mDNSu32 ttl, mDNSu8 RecordType, AuthRecType artype, mDNSRecordCallback Callback, void *Context)
1021 ttl = DefaultTTLforRRType(rrtype);
1027 rr->resrec.rrtype = rrtype;
1115 switch(rr->rrtype)
1163 // r1 has to be a full ResourceRecord including rrtype and rdlength
1164 // r2 is just a bare RDataBody, which MUST be the same rrtype and rdlength as r1
1169 switch(r1->rrtype)
1399 else switch (rr->rrtype)
1451 default: debugf("Warning! Don't know how to get length of resource type %d", rr->rrtype);
1458 mDNSexport mDNSBool ValidateRData(const mDNSu16 rrtype, const mDNSu16 rdlength, const RData *const rd)
1462 switch(rrtype)
1650 switch (rr->rrtype)
1788 default: debugf("putRData: Warning! Writing unknown resource type %d as raw data", rr->rrtype);
1802 const DNSMessage *const rdatacompressionbase = (IsUnicastUpdate(msg) && rr->rrtype == kDNSType_SRV) ? mDNSNULL : msg;
1806 LogMsg("PutResourceRecord ERROR! Attempt to put kDNSRecordTypeUnregistered %##s (%s)", rr->name->c, DNSTypeName(rr->rrtype));
1814 ptr[0] = (mDNSu8)(rr->rrtype >> 8);
1815 ptr[1] = (mDNSu8)(rr->rrtype & 0xFF);
1825 if (!endofrdata) { verbosedebugf("Ran out of space in PutResourceRecord for %##s (%s)", rr->name->c, DNSTypeName(rr->rrtype)); return(mDNSNULL); }
1834 else LogMsg("PutResourceRecordTTL: ERROR: No target count to update for %##s (%s)", rr->name->c, DNSTypeName(rr->rrtype));
1842 ptr[0] = (mDNSu8)(rr->resrec.rrtype >> 8); // Put type
1843 ptr[1] = (mDNSu8)(rr->resrec.rrtype & 0xFF);
1852 mDNSexport mDNSu8 *putQuestion(DNSMessage *const msg, mDNSu8 *ptr, const mDNSu8 *const limit, const domainname *const name, mDNSu16 rrtype, mDNSu16 rrclass)
1856 ptr[0] = (mDNSu8)(rrtype >> 8);
1857 ptr[1] = (mDNSu8)(rrtype & 0xFF);
1883 prereq.resrec.rrtype = kDNSQType_ANY;
1910 mDNSexport mDNSu8 *putDeleteRRSetWithLimit(DNSMessage *msg, mDNSu8 *ptr, const domainname *name, mDNSu16 rrtype, mDNSu8 *limit)
1916 ptr[0] = (mDNSu8)(rrtype >> 8);
1917 ptr[1] = (mDNSu8)(rrtype & 0xFF);
1932 mDNSu16 rrtype = kDNSQType_ANY;
1936 ptr[0] = (mDNSu8)(rrtype >> 8);
1937 ptr[1] = (mDNSu8)(rrtype & 0xFF);
2174 rr->resrec.rrtype = (mDNSu16) ((mDNSu16)ptr[0] << 8 | ptr[1]);
2204 else switch (rr->resrec.rrtype)
2243 DNSTypeName(rr->resrec.rrtype), pktrdlength, rr->resrec.rdata->MaxRDLength);
2370 rr->resrec.rrtype, DNSTypeName(rr->resrec.rrtype), pktrdlength, rr->resrec.rdata->MaxRDLength);
2374 rr->resrec.rrtype, DNSTypeName(rr->resrec.rrtype));
2462 ptr[1] == (kDNSType_OPT >> 8 ) && // rrtype OPT