Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
633
Issues
633
List
Boards
Labels
Service Desk
Milestones
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
9821041d
Commit
9821041d
authored
Apr 22, 1999
by
Andreas Gustafsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some typos and formatting errors
parent
2ff9be15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
doc/dev/coding.html
doc/dev/coding.html
+1
-1
doc/dev/rdata.html
doc/dev/rdata.html
+12
-13
No files found.
doc/dev/coding.html
View file @
9821041d
...
...
@@ -149,7 +149,7 @@ Bad:<P>
printf("yes\n"); i = 0; j = 0;
}
</CODE></PRE>
<H4>
Functions
<H4>
<H4>
Functions
<
/
H4>
The use of ANSI C function prototypes is required.
<P>
The return type of the function should be listed on a line by itself when
specifying the implementation of the function. The opening curly brace should
...
...
doc/dev/rdata.html
View file @
9821041d
...
...
@@ -112,7 +112,7 @@ Permissible alphabet: a to z, 0 to 9 and dash (-).
Dash is mapped to underscore (_) for the C function names below.
<H2>
Internal Format
</H2>
The internal format cho
o
sen is DNS wire format without any compression being
The internal format chosen is DNS wire format without any compression being
applied to domain names in the rdata.
<H2>
Convert from text format to internal format
</H2>
...
...
@@ -175,7 +175,6 @@ Unused tokens will cause <CODE>dns_rdata_fromtext()</CODE> to return
<CODE>
DNS_R_EXTRATOKEN
</CODE>
if
<CODE>
fromtext_
<I>
typename
</I>
()
</CODE>
was successful.
<P>
<CODE>
fromtext_
<I>
typename
</I>
()
</CODE>
reads external input and as such is a high security area and must be paranoid about its input.
<CODE>
fromtext_
<I>
typename
</I>
()
</CODE>
reads external input and as such is a high security area and must be paranoid about its input.
<H2>
Convert from internal format to text format
</H2>
<PRE>
<CODE>
static dns_result_t
...
...
@@ -344,7 +343,7 @@ tostruct_<I>classname_typename</I>(dns_rdata_t *rdata, void *target);</CODE>
<DL>
<DT><CODE>
rdata
</CODE></DT>
<DD>
This is the rdata record to be converted from internal format to
text
.
This is the rdata record to be converted from internal format to
a structure
.
<CODE>
rdata->type
</CODE>
and
<CODE>
rdata->class
</CODE>
for class specific
RR types should be checked at the start of the function with
<CODE>
REQUIRE(rdata->type == #)
</CODE>
statements.
...
...
@@ -438,12 +437,12 @@ totext_<I>typename</I>(dns_rdata_t *rdata, dns_name_t *origin,
dns_name_t name, prefix;
isc_boolean_t sub;
dns_name_init(
&
name, NULL);
dns_name_init(
&
prefix, NULL);
dns_rdata_toregion(rdata,
®ion);
dns_name_fromregion(
&
name,
&
region);
sub =
<B>
name_prefix
</B>
(
&
name, origin,
&
prefix);
return (dns_name_totext(
&
prefix, sub, target));
dns_name_init(
&
amp;
name, NULL);
dns_name_init(
&
amp;
prefix, NULL);
dns_rdata_toregion(rdata,
&
amp;
region);
dns_name_fromregion(
&
amp;
name,
&
region);
sub =
<B>
name_prefix
</B>
(
&
amp;
name, origin,
&
prefix);
return (dns_name_totext(
&
amp;
prefix, sub, target));
}
</CODE></PRE>
<DT><CODE>
static dns_result_t
<BR>
...
...
@@ -474,7 +473,7 @@ make it active.
uint32_tobuffer(isc_uint32_t value, isc_buffer_t *target);
</CODE></DT>
<DD>
<P>
Write the
m
32 bit
<CODE>
value
</CODE>
in network order to
<CODE>
target
</CODE>
.
Write the 32 bit
<CODE>
value
</CODE>
in network order to
<CODE>
target
</CODE>
.
<P>
Returns
<CODE>
DNS_R_NOSPACE
</CODE>
and
<CODE>
DNS_R_SUCCESS
</CODE>
.
<P>
...
...
@@ -527,7 +526,7 @@ Returns <CODE>DNS_R_NOSPACE</CODE> and <CODE>DNS_R_SUCCESS</CODE>.
compare_region(isc_region_t *r1, isc_region_t *r2)
</CODE></DT>
<DD>
<P>
Compares to regions returning -1, 0, 1 based on their DNSSEC ordering.
Compares t
w
o regions returning -1, 0, 1 based on their DNSSEC ordering.
<P>
<DT><CODE>
static int
<BR>
hexvalue(char value);
</CODE></DT>
...
...
@@ -547,7 +546,7 @@ a decimal character.
base64_totext(isc_region_t *source, isc_buffer_t *target);
</CODE></DT>
<DD>
<P>
Convert the region referred to by
<CODE>
source
</CODE>
to base64 encode text
Convert the region referred to by
<CODE>
source
</CODE>
to base64 encode
d
text
and put it into
<CODE>
target
</CODE>
.
<P>
Returns
<CODE>
DNS_R_NOSPACE
</CODE>
or
<CODE>
DNS_R_SUCCESS
</CODE>
.
...
...
@@ -575,7 +574,7 @@ time_totext(unsigned long value, isc_buffer_t *target);</CODE></DT>
Convert the date represented by
<CODE>
value
</CODE>
into YYYYMMDDHHMMSS format
taking into account the active epochs. This code is Y2K and Y2038 compliant.
<P>
Returns
<CODE>
DNS_R_NOSPACE
</CODE>
and
<
DNS_R_SUCCESS
>
.
Returns
<CODE>
DNS_R_NOSPACE
</CODE>
and
<
CODE>
DNS_R_SUCCESS
</CODE
>
.
<DT><CODE>
static dns_result_t
<BR>
time_tobuffer(char *source, isc_buffer_t *target);
</CODE></DT>
<DD>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment