Lines Matching refs:msg
47 static void setsection(ns_msg *msg, ns_sect sect);
107 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { in ns_initparse() argument
108 const u_char *eom = msg + msglen; in ns_initparse()
111 handle->_msg = msg; in ns_initparse()
113 if (msg + NS_INT16SZ > eom) in ns_initparse()
115 NS_GET16(handle->_id, msg); in ns_initparse()
116 if (msg + NS_INT16SZ > eom) in ns_initparse()
118 NS_GET16(handle->_flags, msg); in ns_initparse()
120 if (msg + NS_INT16SZ > eom) in ns_initparse()
122 NS_GET16(handle->_counts[i], msg); in ns_initparse()
128 int b = ns_skiprr(msg, eom, (ns_sect)i, in ns_initparse()
133 handle->_sections[i] = msg; in ns_initparse()
134 msg += b; in ns_initparse()
136 if (msg != eom) in ns_initparse()
268 setsection(ns_msg *msg, ns_sect sect) { in setsection() argument
269 msg->_sect = sect; in setsection()
271 msg->_rrnum = -1; in setsection()
272 msg->_msg_ptr = NULL; in setsection()
274 msg->_rrnum = 0; in setsection()
275 msg->_msg_ptr = msg->_sections[(int)sect]; in setsection()