Lines Matching refs:srcp
426 const u_char *srcp, *dstlim; in ns_name_unpack2() local
433 srcp = src; in ns_name_unpack2()
435 if (srcp < msg || srcp >= eom) { in ns_name_unpack2()
440 while ((n = *srcp++) != 0) { in ns_name_unpack2()
446 if ((l = labellen(srcp - 1)) < 0) { in ns_name_unpack2()
450 if (dstp + l + 1 >= dstlim || srcp + l >= eom) { in ns_name_unpack2()
456 memcpy(dstp, srcp, (size_t)l); in ns_name_unpack2()
458 srcp += l; in ns_name_unpack2()
462 if (srcp >= eom) { 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()
471 l = (((n & 0x3f) << 8) | (*srcp & 0xff)); in ns_name_unpack2()
476 srcp = msg + l; in ns_name_unpack2()
499 _DIAGASSERT(__type_fit(int, srcp - src)); in ns_name_unpack2()
500 len = (int)(srcp - src); in ns_name_unpack2()
530 const u_char *srcp; in ns_name_pack() local
533 srcp = src; in ns_name_pack()
551 n = *srcp; in ns_name_pack()
556 if ((l0 = labellen(srcp)) < 0) { in ns_name_pack()
565 srcp += l0 + 1; in ns_name_pack()
569 srcp = src; in ns_name_pack()
572 n = *srcp; in ns_name_pack()
574 l = dn_find(srcp, msg, (const u_char * const *)dnptrs, in ns_name_pack()
598 n = labellen(srcp); in ns_name_pack()
602 memcpy(dstp, srcp, (size_t)(n + 1)); in ns_name_pack()
603 srcp += n + 1; in ns_name_pack()