Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
e5c44820
Commit
e5c44820
authored
16 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
reorder some lines in file
parent
975c171d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ares/nameser.h
+32
-40
32 additions, 40 deletions
ares/nameser.h
with
32 additions
and
40 deletions
ares/nameser.h
+
32
−
40
View file @
e5c44820
...
...
@@ -5,13 +5,20 @@
/* 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. */
...
...
@@ -25,8 +32,6 @@ typedef enum __ns_class {
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. */
...
...
@@ -82,19 +87,6 @@ typedef enum __ns_type {
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). */
...
...
@@ -105,25 +97,6 @@ typedef enum __ns_opcode {
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. */
...
...
@@ -144,6 +117,22 @@ typedef enum __ns_rcode {
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
...
...
@@ -152,6 +141,7 @@ typedef enum __ns_rcode {
#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
...
...
@@ -199,4 +189,6 @@ typedef enum __ns_rcode {
#define T_MAILA ns_t_maila
#define T_ANY ns_t_any
#endif
/* ARES_NAMESER_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment