/barrelfish-master/lib/libc/nameser/ |
H A D | ns_name.c | 102 char *dn, *eom; local 109 eom = dst + dstsiz; 118 if (dn >= eom) { 128 if (dn + l >= eom) { 140 if ((m = decode_bitstring(&cp, dn, eom)) < 0) 151 if (dn + 1 >= eom) { 158 if (dn + 3 >= eom) { 167 if (dn >= eom) { 176 if (dn >= eom) { 182 if (dn >= eom) { 221 u_char *label, *bp, *eom; local 359 u_char *dn, *eom; local 406 ns_name_unpack(const u_char *msg, const u_char *eom, const u_char *src, u_char *dst, size_t dstsiz) argument 421 ns_name_unpack2(const u_char *msg, const u_char *eom, const u_char *src, u_char *dst, size_t dstsiz, size_t *dstlen) argument 618 ns_name_uncompress(const u_char *msg, const u_char *eom, const u_char *src, char *dst, size_t dstsiz) argument 681 ns_name_skip(const u_char **ptrptr, const u_char *eom) argument 981 decode_bitstring(const unsigned char **cpp, char *dn, const char *eom) argument 1029 encode_bitsring(const char **bp, const char *end, unsigned char **labelp, unsigned char ** dst, unsigned const char *eom) argument [all...] |
H A D | ns_parse.c | 82 ns_skiprr(const u_char *ptr, const u_char *eom, ns_sect section, int count) { argument 88 b = dn_skipname(ptr, eom); 93 if (ptr + NS_INT32SZ + NS_INT16SZ > eom) 100 if (ptr > eom) 107 const u_char *eom = msg + msglen; local 111 handle->_eom = eom; 112 if (msg + NS_INT16SZ > eom) 115 if (msg + NS_INT16SZ > eom) 119 if (msg + NS_INT16SZ > eom) 127 int b = ns_skiprr(msg, eom, (ns_sec [all...] |
/barrelfish-master/lib/libc/resolv/ |
H A D | res_comp.c | 89 * \li 'eom' points to the first location after the message, 94 dn_expand(const u_char *msg, const u_char *eom, const u_char *src, argument 97 int n = ns_name_uncompress(msg, eom, src, dst, (size_t)dstsiz); 123 dn_skipname(const u_char *ptr, const u_char *eom) { argument 126 if (ns_name_skip(&ptr, eom) == -1)
|
H A D | res_send.c | 213 * look for (name,type,class) in the query section of packet (buf,eom) 216 *\li buf + HFIXEDSZ <= eom 228 const u_char *buf, const u_char *eom) 237 n = dn_expand(buf, eom, cp, tname, sizeof tname); 241 if (cp + 2 * INT16SZ > eom) 227 res_nameinquery(const char *name, int type, int class, const u_char *buf, const u_char *eom) argument
|
/barrelfish-master/lib/libc/net/ |
H A D | hesiod.c | 373 unsigned char qbuf[PACKETSZ], abuf[MAX_HESRESP], *p, *eom, *eor; local 398 eom = abuf + n; 405 skip = dn_skipname(p, eom); 406 if (skip < 0 || p + skip + QFIXEDSZ > eom) { 423 skip = dn_skipname(p, eom); 424 if (skip < 0 || p + skip + 10 > eom) 430 if (p + len > eom) {
|
H A D | gethostbydns.c | 125 if (cp > eom) { \ 133 if ((ptr) + (count) > eom) { \ 146 const u_char *eom, *erdata; local 157 eom = answer->buf + anslen; 184 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 214 while (ancount-- > 0 && cp < eom && !had_error) { 215 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 241 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); 271 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf); 309 n = dn_expand(answer->buf, eom, c [all...] |
H A D | getnetbydns.c | 163 u_char *eom; local 183 eom = answer->buf + anslen; 198 cp += __dn_skipname(cp, eom) + QFIXEDSZ; 203 while (--ancount >= 0 && cp < eom) { 204 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 216 n = dn_expand(answer->buf, eom, cp, bp, ep - bp);
|
H A D | getaddrinfo.c | 1993 const u_char *eom; local 2005 eom = answer->buf + anslen; 2028 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 2051 while (ancount-- > 0 && cp < eom && !had_error) { 2052 n = dn_expand(answer->buf, eom, cp, bp, ep - bp); 2071 n = dn_expand(answer->buf, eom, cp, tbuf, sizeof tbuf);
|
/barrelfish-master/lib/libc/gen/ |
H A D | getpwent.c | 942 const char *p, *eom; local 945 eom = &entry[entrysize]; 946 for (p = entry; p < eom; p++) 955 for (p++; p < eom; p++) 958 if (*p != '\0' || (++p) + sizeof(uid) >= eom) 969 char *p, *eom; local 974 eom = &buffer[bufsize]; 977 while (p < eom && *p != '\0') \ 979 if (p >= eom) \ 984 if (p + sizeof(field) > eom) \ 1012 const char *p, *eom; local 1040 char *p, *eom; local 1967 const char *p, *eom; local [all...] |
H A D | getgrent.c | 770 const char *eom; local 772 eom = &s[n]; 774 for (; s < eom; s++) 777 return (*s == '#' || s == eom);
|