/* header file provided by liren@vivisimo.com */
-#define NS_CMPRSFLGS 0xc0
-#define NS_IN6ADDRSZ 16
-#define NS_INT16SZ 2
-#define NS_INADDRSZ 4
- /* Flag bits indicating name compression. */
-#define INDIR_MASK NS_CMPRSFLGS
+
+#define NS_PACKETSZ 512 /* maximum packet size */
+#define NS_MAXDNAME 256 /* maximum domain name */
+#define NS_MAXCDNAME 255 /* maximum compressed domain name */
+#define NS_MAXLABEL 63
+#define NS_HFIXEDSZ 12 /* #/bytes of fixed data in header */
+#define NS_QFIXEDSZ 4 /* #/bytes of fixed data in query */
+#define NS_RRFIXEDSZ 10 /* #/bytes of fixed data in r record */
+#define NS_INT16SZ 2
+#define NS_INADDRSZ 4
+#define NS_IN6ADDRSZ 16
+#define NS_CMPRSFLGS 0xc0 /* Flag bits indicating name compression. */
+#define NS_DEFAULTPORT 53 /* For both TCP and UDP. */
typedef enum __ns_class {
ns_c_invalid = 0, /* Cookie. */
ns_c_max = 65536
} ns_class;
-#define C_IN ns_c_in
-
typedef enum __ns_type {
ns_t_invalid = 0, /* Cookie. */
ns_t_a = 1, /* Host address. */
ns_t_max = 65536
} ns_type;
-#define T_PTR ns_t_ptr
-#define T_A ns_t_a
-
-
-#define NS_DEFAULTPORT 53 /* For both TCP and UDP. */
-#define NAMESERVER_PORT NS_DEFAULTPORT
-
-#define NS_HFIXEDSZ 12 /* #/bytes of fixed data in header */
-#define HFIXEDSZ NS_HFIXEDSZ
-
-#define NS_QFIXEDSZ 4 /* #/bytes of fixed data in query */
-#define QFIXEDSZ NS_QFIXEDSZ
-
typedef enum __ns_opcode {
ns_o_query = 0, /* Standard query. */
ns_o_iquery = 1, /* Inverse query (deprecated/unsupported). */
ns_o_max = 6
} ns_opcode;
-#define QUERY ns_o_query
-
-#define NS_MAXLABEL 63
-#define MAXLABEL NS_MAXLABEL
-
-#define NS_RRFIXEDSZ 10 /* #/bytes of fixed data in r record */
-#define RRFIXEDSZ NS_RRFIXEDSZ
-
-#define T_CNAME ns_t_cname
-
-#define NS_MAXDNAME 256 /* maximum domain name */
-#define MAXDNAME NS_MAXDNAME
-
-#define NS_MAXCDNAME 255 /* maximum compressed domain name */
-#define MAXCDNAME NS_MAXCDNAME
-
-#define NS_PACKETSZ 512 /* maximum packet size */
-#define PACKETSZ NS_PACKETSZ
-
typedef enum __ns_rcode {
ns_r_noerror = 0, /* No error occurred. */
ns_r_formerr = 1, /* Format error. */
ns_r_badtime = 18
} ns_rcode;
+
+
+
+
+#define PACKETSZ NS_PACKETSZ
+#define MAXDNAME NS_MAXDNAME
+#define MAXCDNAME NS_MAXCDNAME
+#define MAXLABEL NS_MAXLABEL
+#define HFIXEDSZ NS_HFIXEDSZ
+#define QFIXEDSZ NS_QFIXEDSZ
+#define RRFIXEDSZ NS_RRFIXEDSZ
+#define INDIR_MASK NS_CMPRSFLGS
+#define NAMESERVER_PORT NS_DEFAULTPORT
+
+#define QUERY ns_o_query
+
#define SERVFAIL ns_r_servfail
#define NOTIMP ns_r_notimpl
#define REFUSED ns_r_refused
#define FORMERR ns_r_formerr
#define NXDOMAIN ns_r_nxdomain
+#define C_IN ns_c_in
#define C_CHAOS ns_c_chaos
#define C_HS ns_c_hs
#define C_NONE ns_c_none
#define T_MAILA ns_t_maila
#define T_ANY ns_t_any
+
+
#endif /* ARES_NAMESER_H */