Lines Matching refs:rdb
1114 const RDataBody2 *const rdb = (RDataBody2 *)rr->rdata->u.data;
1120 case kDNSType_DNAME: return DomainNameHashValue(&rdb->name);
1122 case kDNSType_SOA: return rdb->soa.serial +
1123 rdb->soa.refresh +
1124 rdb->soa.retry +
1125 rdb->soa.expire +
1126 rdb->soa.min +
1127 DomainNameHashValue(&rdb->soa.mname) +
1128 DomainNameHashValue(&rdb->soa.rname);
1133 case kDNSType_KX: return DomainNameHashValue(&rdb->mx.exchange);
1135 case kDNSType_RP: return DomainNameHashValue(&rdb->rp.mbox) + DomainNameHashValue(&rdb->rp.txt);
1137 case kDNSType_PX: return DomainNameHashValue(&rdb->px.map822) + DomainNameHashValue(&rdb->px.mapx400);
1139 case kDNSType_SRV: return DomainNameHashValue(&rdb->srv.target);
1151 sum += (((mDNSu32)(rdb->data[i])) << 8) | rdb->data[i+1];
1156 sum += ((mDNSu32)(rdb->data[i])) << 8;
1649 const RDataBody2 *const rdb = (RDataBody2 *)rr->rdata->u.data;
1655 *ptr++ = rdb->ipv4.b[0];
1656 *ptr++ = rdb->ipv4.b[1];
1657 *ptr++ = rdb->ipv4.b[2];
1658 *ptr++ = rdb->ipv4.b[3];
1664 case kDNSType_DNAME:return(putDomainNameAsLabels(msg, ptr, limit, &rdb->name));
1666 case kDNSType_SOA: ptr = putDomainNameAsLabels(msg, ptr, limit, &rdb->soa.mname);
1668 ptr = putDomainNameAsLabels(msg, ptr, limit, &rdb->soa.rname);
1670 ptr = putVal32(ptr, rdb->soa.serial);
1671 ptr = putVal32(ptr, rdb->soa.refresh);
1672 ptr = putVal32(ptr, rdb->soa.retry);
1673 ptr = putVal32(ptr, rdb->soa.expire);
1674 ptr = putVal32(ptr, rdb->soa.min);
1685 mDNSPlatformMemCopy(ptr, rdb->data, rr->rdlength);
1692 ptr = putVal16(ptr, rdb->mx.preference);
1693 return(putDomainNameAsLabels(msg, ptr, limit, &rdb->mx.exchange));
1695 case kDNSType_RP: ptr = putDomainNameAsLabels(msg, ptr, limit, &rdb->rp.mbox);
1697 ptr = putDomainNameAsLabels(msg, ptr, limit, &rdb->rp.txt);
1701 ptr = putVal16(ptr, rdb->px.preference);
1702 ptr = putDomainNameAsLabels(msg, ptr, limit, &rdb->px.map822);
1704 ptr = putDomainNameAsLabels(msg, ptr, limit, &rdb->px.mapx400);
1707 case kDNSType_AAAA: if (rr->rdlength != sizeof(rdb->ipv6))
1709 if (ptr + sizeof(rdb->ipv6) > limit) return(mDNSNULL);
1710 mDNSPlatformMemCopy(ptr, &rdb->ipv6, sizeof(rdb->ipv6));
1711 return(ptr + sizeof(rdb->ipv6));
1714 *ptr++ = (mDNSu8)(rdb->srv.priority >> 8);
1715 *ptr++ = (mDNSu8)(rdb->srv.priority & 0xFF);
1716 *ptr++ = (mDNSu8)(rdb->srv.weight >> 8);
1717 *ptr++ = (mDNSu8)(rdb->srv.weight & 0xFF);
1718 *ptr++ = rdb->srv.port.b[0];
1719 *ptr++ = rdb->srv.port.b[1];
1720 return(putDomainNameAsLabels(msg, ptr, limit, &rdb->srv.target));
1775 for (i=sizeof(rdataNSEC); i>0; i--) if (rdb->nsec.bitmap[i-1]) break;
1783 for (j=0; j<i; j++) *ptr++ = rdb->nsec.bitmap[j];
1790 mDNSPlatformMemCopy(ptr, rdb->data, rr->rdlength);
2135 RDataBody2 *const rdb = (RDataBody2 *)rr->smallrdatastorage.data;
2207 rdb->ipv4.b[0] = ptr[0];
2208 rdb->ipv4.b[1] = ptr[1];
2209 rdb->ipv4.b[2] = ptr[2];
2210 rdb->ipv4.b[3] = ptr[3];
2216 rdb->name);
2218 //debugf("%##s PTR %##s rdlen %d", rr->resrec.name.c, rdb->name.c, pktrdlength);
2221 case kDNSType_SOA: ptr = getDomainName(msg, ptr, end, &rdb->soa.mname);
2223 ptr = getDomainName(msg, ptr, end, &rdb->soa.rname);
2226 rdb->soa.serial = (mDNSs32) ((mDNSs32)ptr[0x00] << 24 | (mDNSs32)ptr[0x01] << 16 | (mDNSs32)ptr[0x02] << 8 | ptr[0x03]);
2227 rdb->soa.refresh = (mDNSu32) ((mDNSu32)ptr[0x04] << 24 | (mDNSu32)ptr[0x05] << 16 | (mDNSu32)ptr[0x06] << 8 | ptr[0x07]);
2228 rdb->soa.retry = (mDNSu32) ((mDNSu32)ptr[0x08] << 24 | (mDNSu32)ptr[0x09] << 16 | (mDNSu32)ptr[0x0A] << 8 | ptr[0x0B]);
2229 rdb->soa.expire = (mDNSu32) ((mDNSu32)ptr[0x0C] << 24 | (mDNSu32)ptr[0x0D] << 16 | (mDNSu32)ptr[0x0E] << 8 | ptr[0x0F]);
2230 rdb->soa.min = (mDNSu32) ((mDNSu32)ptr[0x10] << 24 | (mDNSu32)ptr[0x11] << 16 | (mDNSu32)ptr[0x12] << 8 | ptr[0x13]);
2247 mDNSPlatformMemCopy(rdb->data, ptr, pktrdlength);
2254 rdb->mx.preference = (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]);
2255 ptr = getDomainName(msg, ptr+2, end, &rdb->mx.exchange);
2257 //debugf("%##s SRV %##s rdlen %d", rr->resrec.name.c, rdb->srv.target.c, pktrdlength);
2260 case kDNSType_RP: ptr = getDomainName(msg, ptr, end, &rdb->rp.mbox); // Domainname + domainname
2262 ptr = getDomainName(msg, ptr, end, &rdb->rp.txt);
2267 rdb->px.preference = (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]);
2268 ptr = getDomainName(msg, ptr, end, &rdb->px.map822);
2270 ptr = getDomainName(msg, ptr, end, &rdb->px.mapx400);
2275 mDNSPlatformMemCopy(&rdb->ipv6, ptr, sizeof(rdb->ipv6));
2279 rdb->srv.priority = (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]);
2280 rdb->srv.weight = (mDNSu16)((mDNSu16)ptr[2] << 8 | ptr[3]);
2281 rdb->srv.port.b[0] = ptr[4];
2282 rdb->srv.port.b[1] = ptr[5];
2283 ptr = getDomainName(msg, ptr+6, end, &rdb->srv.target);
2285 //debugf("%##s SRV %##s rdlen %d", rr->resrec.name.c, rdb->srv.target.c, pktrdlength);
2355 mDNSPlatformMemZero(rdb->nsec.bitmap, sizeof(rdb->nsec.bitmap));
2361 for (j=0; j<i; j++) rdb->nsec.bitmap[j] = *ptr++;
2381 mDNSPlatformMemCopy(rdb->data, ptr, pktrdlength);