Lines Matching defs:msg
39 static void setsection(ns_msg *msg, ns_sect sect);
104 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) {
105 const u_char *eom = msg + msglen;
108 handle->_msg = msg;
110 if (msg + NS_INT16SZ > eom)
112 NS_GET16(handle->_id, msg);
113 if (msg + NS_INT16SZ > eom)
115 NS_GET16(handle->_flags, msg);
117 if (msg + NS_INT16SZ > eom)
119 NS_GET16(handle->_counts[i], msg);
125 int b = ns_skiprr(msg, eom, (ns_sect)i,
130 handle->_sections[i] = msg;
131 msg += b;
133 if (msg != eom)
264 setsection(ns_msg *msg, ns_sect sect) {
265 msg->_sect = sect;
267 msg->_rrnum = -1;
268 msg->_msg_ptr = NULL;
270 msg->_rrnum = 0;
271 msg->_msg_ptr = msg->_sections[(int)sect];