Lines Matching refs:dst
97 ns_name_ntop(const u_char *src, char *dst, size_t dstsiz)
106 dn = dst;
107 eom = dst + dstsiz;
115 if (dn != dst) {
173 if (dn == dst) {
185 return (dn - dst);
201 ns_name_pton(const char *src, u_char *dst, size_t dstsiz) {
202 return (ns_name_pton2(src, dst, dstsiz, NULL));
206 * ns_name_pton2(src, dst, dstsiz, *dstlen)
218 ns_name_pton2(const char *src, u_char *dst, size_t dstsiz, size_t *dstlen) {
224 bp = dst;
225 eom = dst + dstsiz;
295 if ((bp - dst) > MAXCDNAME) {
300 *dstlen = (bp - dst);
334 if ((bp - dst) > MAXCDNAME) { /*%< src too big */
339 *dstlen = (bp - dst);
354 ns_name_ntol(const u_char *src, u_char *dst, size_t dstsiz)
363 dn = dst;
364 eom = dst + dstsiz;
394 return (dn - dst);
405 u_char *dst, size_t dstsiz)
407 return (ns_name_unpack2(msg, eom, src, dst, dstsiz, NULL));
411 * ns_name_unpack2(msg, eom, src, dst, dstsiz, *dstlen)
420 u_char *dst, size_t dstsiz, size_t *dstlen)
428 dstp = dst;
430 dstlim = dst + dstsiz;
488 *dstlen = dstp - dst;
514 ns_name_pack(const u_char *src, u_char *dst, int dstsiz,
523 dstp = dst;
571 return (dstp - dst);
602 return (dstp - dst);
616 char *dst, size_t dstsiz)
623 if (ns_name_ntop(tmp, dst, dstsiz) == -1)
632 *\li Number of bytes consumed in `dst' or -1 (with errno set).
644 ns_name_compress(const char *src, u_char *dst, size_t dstsiz,
651 return (ns_name_pack(tmp, dst, dstsiz, dnptrs, lastdnptr));
1027 unsigned char ** dst, unsigned const char *eom)
1049 for (tp = *dst + 1; cp < end && tp < eom; cp++) {
1123 **dst = blen;
1126 *dst = tp;