19static const char rcsid[] =
"$Id: ns_parse.c,v 1.3.2.1 2003/06/27 03:51:42 marka Exp $";
29#include <netinet/in.h>
51#define RETERR(err) do { errno = (err); return (-1); } while (0)
77 const u_char *optr = ptr;
79 for ((
void)
NULL; count > 0; count--) {
101 const u_char *eom = msg + msglen;
104 memset(handle, 0x5e,
sizeof *handle);
142 if ((tmp = section) < 0 || section >=
ns_s_max)
144 if (section != handle->
_sect)
145 setsection(handle, section);
150 if (rrnum < 0 || rrnum >= handle->
_counts[(
int)section])
152 if (rrnum < handle->_rrnum)
153 setsection(handle, section);
154 if (rrnum > handle->
_rrnum) {
165 b = dn_expand(handle->
_msg, handle->
_eom,
189 setsection(handle, (
ns_sect)((
int)section + 1));
u_int16_t _counts[ns_s_max]
const u_char * _sections[ns_s_max]