Home
last modified time | relevance | path

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

/bionic/libc/dns/nameser/
Dns_name.c101 char *dn, *eom; in ns_name_ntop() local
108 eom = dst + dstsiz; in ns_name_ntop()
117 if (dn >= eom) { in ns_name_ntop()
127 if (dn + l >= eom) { in ns_name_ntop()
139 if ((m = decode_bitstring(&cp, dn, eom)) < 0) in ns_name_ntop()
150 if (dn + 1 >= eom) { in ns_name_ntop()
157 if (dn + 3 >= eom) { in ns_name_ntop()
166 if (dn >= eom) { in ns_name_ntop()
175 if (dn >= eom) { in ns_name_ntop()
181 if (dn >= eom) { in ns_name_ntop()
[all …]
Dns_parse.c82 ns_skiprr(const u_char *ptr, const u_char *eom, ns_sect section, int count) { in ns_skiprr() argument
88 b = dn_skipname(ptr, eom); in ns_skiprr()
93 if (ptr + NS_INT32SZ + NS_INT16SZ > eom) in ns_skiprr()
100 if (ptr > eom) in ns_skiprr()
108 const u_char *eom = msg + msglen; in ns_initparse() local
112 handle->_eom = eom; in ns_initparse()
113 if (msg + NS_INT16SZ > eom) in ns_initparse()
116 if (msg + NS_INT16SZ > eom) in ns_initparse()
120 if (msg + NS_INT16SZ > eom) in ns_initparse()
128 int b = ns_skiprr(msg, eom, (ns_sect)i, in ns_initparse()
[all …]
/bionic/libc/dns/resolv/
Dres_comp.c104 dn_expand(const u_char *msg, const u_char *eom, const u_char *src, in dn_expand() argument
107 int n = ns_name_uncompress(msg, eom, src, dst, (size_t)dstsiz); in dn_expand()
132 dn_skipname(const u_char *ptr, const u_char *eom) { in dn_skipname() argument
135 if (ns_name_skip(&ptr, eom) == -1) in dn_skipname()
Dres_send.c277 const u_char *buf, const u_char *eom) in res_nameinquery() argument
286 n = dn_expand(buf, eom, cp, tname, sizeof tname); in res_nameinquery()
290 if (cp + 2 * INT16SZ > eom) in res_nameinquery()
/bionic/libc/dns/net/
Dgethnamaddr.c212 if (eom - (ptr) < (count)) \
224 const u_char *eom, *erdata; in getanswer() local
241 eom = answer->buf + anslen; in getanswer()
269 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); in getanswer()
293 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
294 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); in getanswer()
315 n = dn_expand(answer->buf, eom, cp, tbuf, in getanswer()
344 n = dn_expand(answer->buf, eom, cp, tbuf, in getanswer()
381 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); in getanswer()
Dgetaddrinfo.c1306 if (eom - (ptr) < (count)) { h_errno = NO_RECOVERY; return NULL; } \
1320 const u_char *eom; in getanswer() local
1336 eom = answer->buf + anslen; in getanswer()
1360 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer()
1383 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
1384 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer()
1405 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); in getanswer()