Lines Matching refs:rd

867 // Output the wire-format domainname pointed to by rd
868 static int snprintd(char *p, int max, const unsigned char **rd)
872 while (**rd)
874 p += snprintf(p, end-p, "%.*s.", **rd, *rd+1);
875 *rd += 1 + **rd;
877 *rd += 1; // Advance over the final zero byte
881 static void ParseDNSSECRecords(uint16_t rrtype, char *rdb, char *p, unsigned const char *rd, uint16_t rdlen)
890 rdataDS *rrds = (rdataDS *)rd;
893 ptr = (unsigned char *)(rd + DS_FIXED_SIZE);
901 rdataDNSKey *rrkey = (rdataDNSKey *)rd;
904 base64Encode(p, rdb + rdb_size - p, (unsigned char *)(rd + DNSKEY_FIXED_SIZE), rdlen - DNSKEY_FIXED_SIZE);
910 unsigned char *next = (unsigned char *)rd;
917 p += snprintd(p, rdb + rdb_size - p, &rd);
960 rdataRRSig *rrsig = (rdataRRSig *)rd;
984 base64Encode(p, rdb + rdb_size - p, (unsigned char *)(rd + len + RRSIG_FIXED_SIZE), rdlen - (len + RRSIG_FIXED_SIZE));
995 const unsigned char *rd = rdata;
1037 snprintf(rdb, sizeof(rdb), "%d.%d.%d.%d", rd[0], rd[1], rd[2], rd[3]);
1044 p += snprintd(p, sizeof(rdb), &rd);
1048 p += snprintd(p, rdb + sizeof(rdb) - p, &rd); // mname
1050 p += snprintd(p, rdb + sizeof(rdb) - p, &rd); // rname
1052 ntohl(((uint32_t*)rd)[0]), ntohl(((uint32_t*)rd)[1]), ntohl(((uint32_t*)rd)[2]), ntohl(((uint32_t*)rd)[3]), ntohl(((uint32_t*)rd)[4]));
1057 rd[0x0], rd[0x1], rd[0x2], rd[0x3], rd[0x4], rd[0x5], rd[0x6], rd[0x7],
1058 rd[0x8], rd[0x9], rd[0xA], rd[0xB], rd[0xC], rd[0xD], rd[0xE], rd[0xF]);
1063 ntohs(*(unsigned short*)rd), ntohs(*(unsigned short*)(rd+2)), ntohs(*(unsigned short*)(rd+4)));
1064 rd += 6;
1065 p += snprintd(p, rdb + sizeof(rdb) - p, &rd); // target host
1072 ParseDNSSECRecords(rrtype, rdb, p, rd, rdlen);
1103 while (rd < end)
1104 printf(" %02X", *rd++);