Lines Matching refs:dst
98 ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) in ns_name_ntop() argument
107 dn = dst; in ns_name_ntop()
108 eom = dst + dstsiz; in ns_name_ntop()
116 if (dn != dst) { in ns_name_ntop()
174 if (dn == dst) { in ns_name_ntop()
186 _DIAGASSERT(__type_fit(int, dn - dst)); in ns_name_ntop()
187 return (int)(dn - dst); in ns_name_ntop()
203 ns_name_pton(const char *src, u_char *dst, size_t dstsiz) { in ns_name_pton() argument
204 return (ns_name_pton2(src, dst, dstsiz, NULL)); in ns_name_pton()
221 ns_name_pton2(const char *src, u_char *dst, size_t dstsiz, size_t *dstlen) { in ns_name_pton2() argument
227 bp = dst; in ns_name_pton2()
228 eom = dst + dstsiz; in ns_name_pton2()
298 if ((bp - dst) > MAXCDNAME) { in ns_name_pton2()
303 *dstlen = (bp - dst); in ns_name_pton2()
337 if ((bp - dst) > MAXCDNAME) { /* src too big */ in ns_name_pton2()
342 *dstlen = (bp - dst); in ns_name_pton2()
357 ns_name_ntol(const u_char *src, u_char *dst, size_t dstsiz) in ns_name_ntol() argument
366 dn = dst; in ns_name_ntol()
367 eom = dst + dstsiz; in ns_name_ntol()
397 _DIAGASSERT(__type_fit(int, dn - dst)); in ns_name_ntol()
398 return (int)(dn - dst); in ns_name_ntol()
409 u_char *dst, size_t dstsiz) in ns_name_unpack() argument
411 return (ns_name_unpack2(msg, eom, src, dst, dstsiz, NULL)); in ns_name_unpack()
424 u_char *dst, size_t dstsiz, size_t *dstlen) in ns_name_unpack2() argument
432 dstp = dst; in ns_name_unpack2()
434 dstlim = dst + dstsiz; in ns_name_unpack2()
497 *dstlen = dstp - dst; in ns_name_unpack2()
525 ns_name_pack(const u_char *src, u_char *dst, int dstsiz, in ns_name_pack() argument
534 dstp = dst; in ns_name_pack()
582 _DIAGASSERT(__type_fit(int, dstp - dst)); in ns_name_pack()
583 return (int)(dstp - dst); in ns_name_pack()
614 _DIAGASSERT(__type_fit(int, dstp - dst)); in ns_name_pack()
615 return (int)(dstp - dst); in ns_name_pack()
629 char *dst, size_t dstsiz) in ns_name_uncompress() argument
636 if (ns_name_ntop(tmp, dst, dstsiz) == -1) in ns_name_uncompress()
657 ns_name_compress(const char *src, u_char *dst, size_t dstsiz, in ns_name_compress() argument
664 return (ns_name_pack(tmp, dst, (int)dstsiz, dnptrs, lastdnptr)); in ns_name_compress()
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()
1141 **dst = blen; in encode_bitsring()
1144 *dst = tp; in encode_bitsring()