Home
last modified time | relevance | path

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

/bionic/libc/dns/nameser/
Dns_parse.c143 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()
[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.h177 #define ns_rr_name(rr) (((rr).name[0] != '\0') ? (rr).name : ".") argument
178 #define ns_rr_nname(rr) ((const ns_nname_t)(rr).nname) argument
179 #define ns_rr_nnamel(rr) ((rr).nnamel + 0) argument
180 #define ns_rr_type(rr) ((ns_type)((rr).type + 0)) argument
181 #define ns_rr_class(rr) ((ns_class)((rr).rr_class + 0)) argument
182 #define ns_rr_ttl(rr) ((u_long)(rr).ttl + 0) argument
183 #define ns_rr_rdlen(rr) ((size_t)(rr).rdlength + 0) argument
184 #define ns_rr_rdata(rr) ((rr).rdata + 0) argument
/bionic/libc/dns/resolv/
Dres_debug.c175 ns_rr rr; in do_section() local
193 if (ns_parserr(handle, section, rrnum, &rr)) { in do_section()
207 ns_rr_name(rr), in do_section()
208 p_type(ns_rr_type(rr)), in do_section()
209 p_class(ns_rr_class(rr))); in do_section()
210 else if (section == ns_s_ar && ns_rr_type(rr) == ns_t_opt) { in do_section()
214 rdatalen = ns_rr_rdlen(rr); in do_section()
215 ttl = ns_rr_ttl(rr); in do_section()
218 (ttl>>16)&0xff, ns_rr_class(rr), ttl&0xffff); in do_section()
220 const u_char *cp = ns_rr_rdata(rr); in do_section()
[all …]
Dres_cache.c1073 ns_rr rr; in answer_getNegativeTTL() local
1077 if ((ns_parserr(&handle, ns_s_ns, n, &rr) == 0) && (ns_rr_type(rr) == ns_t_soa)) { in answer_getNegativeTTL()
1078 const u_char *rdata = ns_rr_rdata(rr); // find the data in answer_getNegativeTTL()
1079 const u_char *edata = rdata + ns_rr_rdlen(rr); // add the len to find the end in answer_getNegativeTTL()
1081 u_long ttl, rec_result = ns_rr_ttl(rr); in answer_getNegativeTTL()
1129 ns_rr rr; in answer_getTTL() local
1141 if (ns_parserr(&handle, ns_s_an, n, &rr) == 0) { in answer_getTTL()
1142 ttl = ns_rr_ttl(rr); in answer_getTTL()
/bionic/libc/kernel/uapi/linux/
Dbatadv_packet.h178 __u8 rr[BATADV_RR_LEN][ETH_ALEN]; member