Lines Matching refs:rr
143 ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) { in ns_parserr() argument
173 handle->_msg_ptr, rr->name, NS_MAXDNAME); in ns_parserr()
179 NS_GET16(rr->type, handle->_msg_ptr); in ns_parserr()
180 NS_GET16(rr->rr_class, handle->_msg_ptr); in ns_parserr()
182 rr->ttl = 0; in ns_parserr()
183 rr->rdlength = 0; in ns_parserr()
184 rr->rdata = NULL; in ns_parserr()
188 NS_GET32(rr->ttl, handle->_msg_ptr); in ns_parserr()
189 NS_GET16(rr->rdlength, handle->_msg_ptr); in ns_parserr()
190 if (handle->_msg_ptr + rr->rdlength > handle->_eom) in ns_parserr()
192 rr->rdata = handle->_msg_ptr; in ns_parserr()
193 handle->_msg_ptr += rr->rdlength; in ns_parserr()
206 ns_parserr2(ns_msg *handle, ns_sect section, int rrnum, ns_rr2 *rr) { in ns_parserr2() argument
236 rr->nname, NS_MAXNNAME, &rr->nnamel); in ns_parserr2()
242 NS_GET16(rr->type, handle->_msg_ptr); in ns_parserr2()
243 NS_GET16(rr->rr_class, handle->_msg_ptr); in ns_parserr2()
245 rr->ttl = 0; in ns_parserr2()
246 rr->rdlength = 0; in ns_parserr2()
247 rr->rdata = NULL; in ns_parserr2()
251 NS_GET32(rr->ttl, handle->_msg_ptr); in ns_parserr2()
252 NS_GET16(rr->rdlength, handle->_msg_ptr); in ns_parserr2()
253 if (handle->_msg_ptr + rr->rdlength > handle->_eom) in ns_parserr2()
255 rr->rdata = handle->_msg_ptr; in ns_parserr2()
256 handle->_msg_ptr += rr->rdlength; in ns_parserr2()