Lines Matching defs:rr
140 ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) {
170 handle->_msg_ptr, rr->name, NS_MAXDNAME);
176 NS_GET16(rr->type, handle->_msg_ptr);
177 NS_GET16(rr->rr_class, handle->_msg_ptr);
179 rr->ttl = 0;
180 rr->rdlength = 0;
181 rr->rdata = NULL;
185 NS_GET32(rr->ttl, handle->_msg_ptr);
186 NS_GET16(rr->rdlength, handle->_msg_ptr);
187 if (handle->_msg_ptr + rr->rdlength > handle->_eom)
189 rr->rdata = handle->_msg_ptr;
190 handle->_msg_ptr += rr->rdlength;
203 ns_parserr2(ns_msg *handle, ns_sect section, int rrnum, ns_rr2 *rr) {
232 rr->nname, NS_MAXNNAME, &rr->nnamel);
238 NS_GET16(rr->type, handle->_msg_ptr);
239 NS_GET16(rr->rr_class, handle->_msg_ptr);
241 rr->ttl = 0;
242 rr->rdlength = 0;
243 rr->rdata = NULL;
247 NS_GET32(rr->ttl, handle->_msg_ptr);
248 NS_GET16(rr->rdlength, handle->_msg_ptr);
249 if (handle->_msg_ptr + rr->rdlength > handle->_eom)
251 rr->rdata = handle->_msg_ptr;
252 handle->_msg_ptr += rr->rdlength;