Lines Matching refs:dstp
427 u_char *dstp; in ns_name_unpack2() local
432 dstp = dst; in ns_name_unpack2()
450 if (dstp + l + 1 >= dstlim || srcp + l >= eom) { in ns_name_unpack2()
455 *dstp++ = n; in ns_name_unpack2()
456 memcpy(dstp, srcp, (size_t)l); in ns_name_unpack2()
457 dstp += l; in ns_name_unpack2()
495 *dstp++ = 0; in ns_name_unpack2()
497 *dstlen = dstp - dst; in ns_name_unpack2()
528 u_char *dstp; in ns_name_pack() local
534 dstp = dst; in ns_name_pack()
535 eob = dstp + dstsiz; in ns_name_pack()
577 if (dstp + 1 >= eob) { in ns_name_pack()
580 *dstp++ = ((u_int32_t)l >> 8) | NS_CMPRSFLGS; in ns_name_pack()
581 *dstp++ = l % 256; in ns_name_pack()
582 _DIAGASSERT(__type_fit(int, dstp - dst)); in ns_name_pack()
583 return (int)(dstp - dst); in ns_name_pack()
587 (dstp - msg) < 0x4000 && first) { in ns_name_pack()
588 *cpp++ = dstp; in ns_name_pack()
599 if (dstp + 1 + n >= eob) { in ns_name_pack()
602 memcpy(dstp, srcp, (size_t)(n + 1)); in ns_name_pack()
604 dstp += n + 1; in ns_name_pack()
607 if (dstp > eob) { in ns_name_pack()
614 _DIAGASSERT(__type_fit(int, dstp - dst)); in ns_name_pack()
615 return (int)(dstp - dst); in ns_name_pack()