#include "config.h"#include <sys/types.h>#include <netinet/in.h>#include "arpa_nameser.h"#include <errno.h>#include <string.h>

Go to the source code of this file.
Defines | |
| #define | RETERR(err) do { errno = (err); return (-1); } while (0) |
Functions | |
| int | ns_skiprr (const u_char *ptr, const u_char *eom, ns_sect section, int count) |
| int | ns_initparse (const u_char *msg, int msglen, ns_msg *handle) |
| int | ns_parserr (ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) |
Variables | |
| struct _ns_flagdata | _ns_flagdata [16] |
| #define RETERR | ( | err | ) | do { errno = (err); return (-1); } while (0) |
Definition at line 50 of file __ns_initparse.c.
Referenced by ns_initparse(), ns_parserr(), and ns_skiprr().
| int ns_initparse | ( | const u_char * | msg, | |
| int | msglen, | |||
| ns_msg * | handle | |||
| ) |
Definition at line 99 of file __ns_initparse.c.
References ns_msg::_counts, ns_msg::_eom, ns_msg::_flags, ns_msg::_id, ns_msg::_msg, ns_msg::_sections, NS_GET16, NS_INT16SZ, ns_s_max, ns_skiprr, NULL, and RETERR.
Definition at line 136 of file __ns_initparse.c.
References ns_msg::_counts, ns_msg::_eom, ns_msg::_msg, ns_msg::_msg_ptr, ns_msg::_rrnum, ns_msg::_sect, ns_rr::name, NS_GET16, NS_GET32, NS_INT16SZ, NS_INT32SZ, NS_MAXDNAME, ns_s_max, ns_s_qd, ns_skiprr, NULL, ns_rr::rdata, ns_rr::rdlength, RETERR, ns_rr::rr_class, ns_rr::ttl, and ns_rr::type.
| int ns_skiprr | ( | const u_char * | ptr, | |
| const u_char * | eom, | |||
| ns_sect | section, | |||
| int | count | |||
| ) |
Definition at line 75 of file __ns_initparse.c.
References dn_skipname, NS_GET16, NS_INT16SZ, NS_INT32SZ, ns_s_qd, NULL, and RETERR.
| struct _ns_flagdata _ns_flagdata[16] |
Initial value:
{
{ 0x8000, 15 },
{ 0x7800, 11 },
{ 0x0400, 10 },
{ 0x0200, 9 },
{ 0x0100, 8 },
{ 0x0080, 7 },
{ 0x0040, 6 },
{ 0x0020, 5 },
{ 0x0010, 4 },
{ 0x000f, 0 },
{ 0x0000, 0 },
{ 0x0000, 0 },
{ 0x0000, 0 },
{ 0x0000, 0 },
{ 0x0000, 0 },
{ 0x0000, 0 },
}
Definition at line 55 of file __ns_initparse.c.
1.5.4