Home
last modified time | relevance | path

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

/system/netd/resolv/
Dres_comp.cpp91 int dn_expand(const u_char* msg, const u_char* eom, const u_char* src, char* dst, int dstsiz) { in dn_expand() argument
92 int n = ns_name_uncompress(msg, eom, src, dst, (size_t) dstsiz); in dn_expand()
111 int dn_skipname(const u_char* ptr, const u_char* eom) { in dn_skipname() argument
114 if (ns_name_skip(&ptr, eom) == -1) return (-1); in dn_skipname()
Dgethnamaddr.cpp141 if (eom - (ptr) < (count)) goto no_recovery; \
151 const u_char *eom, *erdata; in getanswer() local
167 eom = answer->buf + anslen; in getanswer()
193 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
213 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
214 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
235 n = dn_expand(answer->buf, eom, cp, tbuf, (int) sizeof tbuf); in getanswer()
262 n = dn_expand(answer->buf, eom, cp, tbuf, (int) sizeof tbuf); in getanswer()
295 n = dn_expand(answer->buf, eom, cp, bp, (int) (ep - bp)); in getanswer()
Dgetaddrinfo.cpp822 if (eom - (ptr) < (count)) { \
838 const u_char* eom; in getanswer() local
853 eom = answer->buf + anslen; in getanswer()
877 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer()
900 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
901 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); in getanswer()
921 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); in getanswer()
Dres_send.cpp315 int res_nameinquery(const char* name, int type, int cl, const u_char* buf, const u_char* eom) { in res_nameinquery() argument
321 int n = dn_expand(buf, eom, cp, tname, sizeof tname); in res_nameinquery()
324 if (cp + 2 * INT16SZ > eom) return (-1); in res_nameinquery()