Home
last modified time | relevance | path

Searched refs:rr (Results 1 – 6 of 6) sorted by relevance

/bionic/libc/dns/nameser/
Dns_parse.c141 ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) { in ns_parserr() argument
171 handle->_msg_ptr, rr->name, NS_MAXDNAME); in ns_parserr()
177 NS_GET16(rr->type, handle->_msg_ptr); in ns_parserr()
178 NS_GET16(rr->rr_class, handle->_msg_ptr); in ns_parserr()
180 rr->ttl = 0; in ns_parserr()
181 rr->rdlength = 0; in ns_parserr()
182 rr->rdata = NULL; in ns_parserr()
186 NS_GET32(rr->ttl, handle->_msg_ptr); in ns_parserr()
187 NS_GET16(rr->rdlength, handle->_msg_ptr); in ns_parserr()
188 if (handle->_msg_ptr + rr->rdlength > handle->_eom) in ns_parserr()
[all …]
Dns_print.c88 ns_sprintrr(const ns_msg *handle, const ns_rr *rr, in ns_sprintrr() argument
95 ns_rr_name(*rr), ns_rr_class(*rr), ns_rr_type(*rr), in ns_sprintrr()
96 ns_rr_ttl(*rr), ns_rr_rdata(*rr), ns_rr_rdlen(*rr), in ns_sprintrr()
/bionic/libc/include/arpa/
Dnameser.h181 #define ns_rr_name(rr) (((rr).name[0] != '\0') ? (rr).name : ".") argument
182 #define ns_rr_nname(rr) ((const ns_nname_t)(rr).nname) argument
183 #define ns_rr_nnamel(rr) ((rr).nnamel + 0) argument
184 #define ns_rr_type(rr) ((ns_type)((rr).type + 0)) argument
185 #define ns_rr_class(rr) ((ns_class)((rr).rr_class + 0)) argument
186 #define ns_rr_ttl(rr) ((u_long)(rr).ttl + 0) argument
187 #define ns_rr_rdlen(rr) ((size_t)(rr).rdlength + 0) argument
188 #define ns_rr_rdata(rr) ((rr).rdata + 0) argument
/bionic/libc/dns/resolv/
Dres_debug.c157 ns_rr rr; in do_section() local
175 if (ns_parserr(handle, section, rrnum, &rr)) { in do_section()
189 ns_rr_name(rr), in do_section()
190 p_type(ns_rr_type(rr)), in do_section()
191 p_class(ns_rr_class(rr))); in do_section()
192 else if (section == ns_s_ar && ns_rr_type(rr) == ns_t_opt) { in do_section()
196 rdatalen = ns_rr_rdlen(rr); in do_section()
197 ttl = ns_rr_ttl(rr); in do_section()
200 (ttl>>16)&0xff, ns_rr_class(rr), ttl&0xffff); in do_section()
202 const u_char *cp = ns_rr_rdata(rr); in do_section()
[all …]
Dres_cache.c1016 ns_rr rr; in answer_getNegativeTTL() local
1020 if ((ns_parserr(&handle, ns_s_ns, n, &rr) == 0) && (ns_rr_type(rr) == ns_t_soa)) { in answer_getNegativeTTL()
1021 const u_char *rdata = ns_rr_rdata(rr); // find the data in answer_getNegativeTTL()
1022 const u_char *edata = rdata + ns_rr_rdlen(rr); // add the len to find the end in answer_getNegativeTTL()
1024 u_long ttl, rec_result = ns_rr_ttl(rr); in answer_getNegativeTTL()
1072 ns_rr rr; in answer_getTTL() local
1084 if (ns_parserr(&handle, ns_s_an, n, &rr) == 0) { in answer_getTTL()
1085 ttl = ns_rr_ttl(rr); in answer_getTTL()
/bionic/libc/kernel/uapi/asm-mips/asm/
Dinst.h1040 struct m16e_rr rr; member