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
632
Issues
632
List
Boards
Labels
Service Desk
Milestones
Merge Requests
104
Merge Requests
104
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
435abcf2
Commit
435abcf2
authored
Feb 24, 2000
by
Bob Halley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add dns_message_renderreset()
parent
4777bac4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
lib/dns/include/dns/message.h
lib/dns/include/dns/message.h
+14
-0
lib/dns/message.c
lib/dns/message.c
+29
-0
No files found.
lib/dns/include/dns/message.h
View file @
435abcf2
...
...
@@ -450,6 +450,20 @@ dns_message_renderend(dns_message_t *msg);
* DNS_R_SUCCESS -- all is well.
*/
void
dns_message_renderreset
(
dns_message_t
*
msg
);
/*
* Reset the message so that it may be rendered again.
*
* Notes:
*
* If dns_message_renderbegin() has been called, dns_message_renderend()
* must be called before calling this function.
*
* Requires:
*
* 'msg' be a valid message with rendering intent.
*/
isc_result_t
dns_message_firstname
(
dns_message_t
*
msg
,
dns_section_t
section
);
...
...
lib/dns/message.c
View file @
435abcf2
...
...
@@ -1684,6 +1684,35 @@ dns_message_renderend(dns_message_t *msg)
return
(
DNS_R_SUCCESS
);
}
void
dns_message_renderreset
(
dns_message_t
*
msg
)
{
unsigned
int
i
;
dns_name_t
*
name
;
dns_rdataset_t
*
rds
;
/*
* Reset the message so that it may be rendered again.
*/
REQUIRE
(
DNS_MESSAGE_VALID
(
msg
));
REQUIRE
(
msg
->
from_to_wire
==
DNS_MESSAGE_INTENTRENDER
);
for
(
i
=
0
;
i
<
DNS_SECTION_MAX
;
i
++
)
{
msg
->
cursors
[
i
]
=
NULL
;
msg
->
counts
[
i
]
=
0
;
for
(
name
=
ISC_LIST_HEAD
(
msg
->
sections
[
i
]);
name
!=
NULL
;
name
=
ISC_LIST_NEXT
(
name
,
link
))
{
for
(
rds
=
ISC_LIST_HEAD
(
name
->
list
);
rds
!=
NULL
;
rds
=
ISC_LIST_NEXT
(
rds
,
link
))
{
rds
->
attributes
&=
~
DNS_RDATASETATTR_RENDERED
;
}
}
}
}
isc_result_t
dns_message_firstname
(
dns_message_t
*
msg
,
dns_section_t
section
)
{
...
...
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