Lines Matching refs:src
98 ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) in ns_name_ntop() argument
106 cp = src; 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
231 while ((c = *src++) != 0) { in ns_name_pton2()
234 if ((cp = strchr(src, ']')) == NULL) { in ns_name_pton2()
238 if ((e = encode_bitsring(&src, cp + 2, in ns_name_pton2()
246 if ((c = *src++) == 0) in ns_name_pton2()
256 if ((c = *src++) == 0 || in ns_name_pton2()
262 if ((c = *src++) == 0 || in ns_name_pton2()
290 if (*src == '\0') { in ns_name_pton2()
306 if (c == 0 || *src == '.') { in ns_name_pton2()
357 ns_name_ntol(const u_char *src, u_char *dst, size_t dstsiz) in ns_name_ntol() argument
365 cp = src; 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
433 srcp = src; in ns_name_unpack2()
467 _DIAGASSERT(__type_fit(int, srcp - src + 1)); in ns_name_unpack2()
468 len = (int)(srcp - src + 1); in ns_name_unpack2()
499 _DIAGASSERT(__type_fit(int, srcp - src)); in ns_name_unpack2()
500 len = (int)(srcp - src); in ns_name_unpack2()
525 ns_name_pack(const u_char *src, u_char *dst, int dstsiz, in ns_name_pack() argument
533 srcp = src; in ns_name_pack()
569 srcp = src; in ns_name_pack()
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()
657 ns_name_compress(const char *src, u_char *dst, size_t dstsiz, in ns_name_compress() argument
662 if (ns_name_pton(src, tmp, sizeof tmp) == -1) in ns_name_compress()
672 ns_name_rollback(const u_char *src, const u_char **dnptrs, in ns_name_rollback() argument
676 if (*dnptrs >= src) { in ns_name_rollback()