Lines Matching full:rr

29 /** buffer to read an RR, cannot be larger than 64K because of packet size */
86 * Convert text RR to wireformat, with user buffer.
87 * @param str: the RR data in text presentation format.
88 * @param rr: the buffer where the result is stored into. This buffer has
94 * the buffer used for the rr.
104 int sldns_str2wire_rr_buf(const char* str, uint8_t* rr, size_t* len,
109 * Same as sldns_str2wire_rr_buf, but there is no rdata, it returns an RR
112 * @param str: the RR data in text presentation format.
113 * @param rr: the buffer where the result is stored into.
115 * the buffer used for the rr.
124 int sldns_str2wire_rr_question_buf(const char* str, uint8_t* rr, size_t* len,
129 * Get the type of the RR.
130 * @param rr: the RR in wire format.
131 * @param len: rr length.
135 uint16_t sldns_wirerr_get_type(uint8_t* rr, size_t len, size_t dname_len);
138 * Get the class of the RR.
139 * @param rr: the RR in wire format.
140 * @param len: rr length.
144 uint16_t sldns_wirerr_get_class(uint8_t* rr, size_t len, size_t dname_len);
147 * Get the ttl of the RR.
148 * @param rr: the RR in wire format.
149 * @param len: rr length.
153 uint32_t sldns_wirerr_get_ttl(uint8_t* rr, size_t len, size_t dname_len);
156 * Get the rdata length of the RR.
157 * @param rr: the RR in wire format.
158 * @param len: rr length.
161 * If the rdata length is larger than the rr-len allows, it is truncated.
165 uint16_t sldns_wirerr_get_rdatalen(uint8_t* rr, size_t len, size_t dname_len);
168 * Get the rdata pointer of the RR.
169 * @param rr: the RR in wire format.
170 * @param len: rr length.
174 uint8_t* sldns_wirerr_get_rdata(uint8_t* rr, size_t len, size_t dname_len);
177 * Get the rdata pointer of the RR. prefixed with rdata length.
178 * @param rr: the RR in wire format.
179 * @param len: rr length.
183 uint8_t* sldns_wirerr_get_rdatawl(uint8_t* rr, size_t len, size_t dname_len);
268 * Read one RR from zonefile with buffer for the data.
269 * @param in: file that is read from (one RR, multiple lines if it spans them).
270 * @param rr: this is malloced by the user and the result is stored here,
271 * if an RR is read. If no RR is read this is signalled with the
275 * @param len: on input, the length of the rr buffer. on output the rr len.
277 * @param dname_len: returns the length of the dname initial part of the rr.
287 int sldns_fp2wire_rr_buf(FILE* in, uint8_t* rr, size_t* len, size_t* dname_len,