Lines Matching refs:eom
101 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()
222 u_char *label, *bp, *eom; in ns_name_pton2() local
228 eom = dst + dstsiz; in ns_name_pton2()
239 &label, &bp, eom)) in ns_name_pton2()
284 if (label >= eom) { in ns_name_pton2()
292 if (bp >= eom) { in ns_name_pton2()
313 if (bp >= eom) { in ns_name_pton2()
325 if (label >= eom) { in ns_name_pton2()
331 if (bp >= eom) { in ns_name_pton2()
360 u_char *dn, *eom; in ns_name_ntol() local
367 eom = dst + dstsiz; in ns_name_ntol()
369 if (dn >= eom) { in ns_name_ntol()
384 if (dn + l >= eom) { in ns_name_ntol()
408 ns_name_unpack(const u_char *msg, const u_char *eom, const u_char *src, in ns_name_unpack() argument
411 return (ns_name_unpack2(msg, eom, src, dst, dstsiz, NULL)); in ns_name_unpack()
423 ns_name_unpack2(const u_char *msg, const u_char *eom, const u_char *src, in ns_name_unpack2() argument
435 if (srcp < msg || srcp >= eom) { in ns_name_unpack2()
450 if (dstp + l + 1 >= dstlim || srcp + l >= eom) { in ns_name_unpack2()
462 if (srcp >= eom) { in ns_name_unpack2()
472 if (l >= eom - msg) { /* Out of range. */ in ns_name_unpack2()
484 if (checked >= eom - msg) { in ns_name_unpack2()
628 ns_name_uncompress(const u_char *msg, const u_char *eom, const u_char *src, in ns_name_uncompress() argument
634 if ((n = ns_name_unpack(msg, eom, src, tmp, sizeof tmp)) == -1) in ns_name_uncompress()
691 ns_name_skip(const u_char **ptrptr, const u_char *eom) in ns_name_skip() argument
698 while (cp < eom && (n = *cp++) != 0) { in ns_name_skip()
705 if (cp < eom && (l = labellen(cp - 1)) < 0) { in ns_name_skip()
720 if (cp > eom) { in ns_name_skip()
995 decode_bitstring(const unsigned char **cpp, char *dn, const char *eom) in decode_bitstring() argument
1005 if (dn + plen >= eom) in decode_bitstring()
1009 i = snprintf(dn, eom - dn, "\\[x"); in decode_bitstring()
1014 i = snprintf(dn, eom - dn, "%02x", *cp & 0xff); in decode_bitstring()
1021 i = snprintf(dn, eom - dn, "%02x", tc & (0xff << (8 - b))); in decode_bitstring()
1027 i = snprintf(dn, eom - dn, "%1x", in decode_bitstring()
1033 i = snprintf(dn, eom - dn, "/%d]", blen); in decode_bitstring()
1045 unsigned char ** dst, unsigned const char *eom) in encode_bitsring() argument
1067 for (tp = *dst + 1; cp < end && tp < eom; cp++) { in encode_bitsring()
1114 if (cp >= end || tp >= eom) in encode_bitsring()