Lines Matching refs:msg
31 static void setsection(ns_msg *msg, ns_sect sect);
90 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { in libresolv_hidden_def()
91 const u_char *eom = msg + msglen; in libresolv_hidden_def()
95 handle->_msg = msg; in libresolv_hidden_def()
97 if (msg + NS_INT16SZ > eom) in libresolv_hidden_def()
99 NS_GET16(handle->_id, msg); in libresolv_hidden_def()
100 if (msg + NS_INT16SZ > eom) in libresolv_hidden_def()
102 NS_GET16(handle->_flags, msg); in libresolv_hidden_def()
104 if (msg + NS_INT16SZ > eom) in libresolv_hidden_def()
106 NS_GET16(handle->_counts[i], msg); in libresolv_hidden_def()
112 int b = ns_skiprr(msg, eom, (ns_sect)i, in libresolv_hidden_def()
117 handle->_sections[i] = msg; in libresolv_hidden_def()
118 msg += b; in libresolv_hidden_def()
120 if (msg != eom) in libresolv_hidden_def()
191 setsection(ns_msg *msg, ns_sect sect) { in libresolv_hidden_def()
192 msg->_sect = sect; in libresolv_hidden_def()
194 msg->_rrnum = -1; in libresolv_hidden_def()
195 msg->_msg_ptr = NULL; in libresolv_hidden_def()
197 msg->_rrnum = 0; in libresolv_hidden_def()
198 msg->_msg_ptr = msg->_sections[(int)sect]; in libresolv_hidden_def()