Lines Matching refs:msg
46 static void setsection(ns_msg *msg, ns_sect sect);
103 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { in ns_initparse() argument
104 const u_char *eom = msg + msglen; in ns_initparse()
108 handle->_msg = msg; in ns_initparse()
110 if (msg + NS_INT16SZ > eom) in ns_initparse()
112 NS_GET16(handle->_id, msg); in ns_initparse()
113 if (msg + NS_INT16SZ > eom) in ns_initparse()
115 NS_GET16(handle->_flags, msg); in ns_initparse()
117 if (msg + NS_INT16SZ > eom) in ns_initparse()
119 NS_GET16(handle->_counts[i], msg); in ns_initparse()
125 int b = ns_skiprr(msg, eom, (ns_sect)i, in ns_initparse()
130 handle->_sections[i] = msg; in ns_initparse()
131 msg += b; in ns_initparse()
133 if (msg != eom) in ns_initparse()
200 setsection(ns_msg *msg, ns_sect sect) { in setsection() argument
201 msg->_sect = sect; in setsection()
203 msg->_rrnum = -1; in setsection()
204 msg->_msg_ptr = NULL; in setsection()
206 msg->_rrnum = 0; in setsection()
207 msg->_msg_ptr = msg->_sections[(int)sect]; in setsection()