Lines Matching refs:msg
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
435 if (srcp < msg || srcp >= eom) { in ns_name_unpack2()
472 if (l >= eom - msg) { /* Out of range. */ in ns_name_unpack2()
476 srcp = msg + l; in ns_name_unpack2()
484 if (checked >= eom - msg) { in ns_name_unpack2()
529 const u_char **cpp, **lpp, *eob, *msg; in ns_name_pack() local
538 if ((msg = *dnptrs++) != NULL) { in ns_name_pack()
544 msg = NULL; in ns_name_pack()
573 if (n != 0 && msg != NULL) { in ns_name_pack()
574 l = dn_find(srcp, msg, (const u_char * const *)dnptrs, in ns_name_pack()
587 (dstp - msg) < 0x4000 && first) { in ns_name_pack()
609 if (msg != NULL) 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()
933 dn_find(const u_char *domain, const u_char *msg, in dn_find() argument
950 (sp - msg) < 0x4000) { in dn_find()
971 sp - msg)); in dn_find()
972 return (int)(sp - msg); in dn_find()
978 cp = msg + (((n & 0x3f) << 8) | *cp); in dn_find()