Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
1ac4b2a1
Commit
1ac4b2a1
authored
May 22, 2000
by
Andreas Gustafsson
Browse files
when printing a SIG record with covers==0, print it as 0,
not RESERVED0
parent
a185ac41
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/rdata/generic/sig_24.c
View file @
1ac4b2a1
...
...
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: sig_24.c,v 1.4
1
2000/05/22
12:37:56 marka
Exp $ */
/* $Id: sig_24.c,v 1.4
2
2000/05/22
21:42:47 gson
Exp $ */
/* Reviewed: Fri Mar 17 09:05:02 PST 2000 by gson */
...
...
@@ -141,7 +141,17 @@ totext_sig(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
*/
covered
=
uint16_fromregion
(
&
sr
);
isc_region_consume
(
&
sr
,
2
);
RETERR
(
dns_rdatatype_totext
(
covered
,
target
));
/*
* XXXAG We should have something like dns_rdatatype_isknown()
* that does the right thing with type 0.
*/
if
(
dns_rdatatype_isknown
(
covered
)
&&
covered
!=
0
)
{
RETERR
(
dns_rdatatype_totext
(
covered
,
target
));
}
else
{
char
buf
[
sizeof
"65535"
];
sprintf
(
buf
,
"%u"
,
covered
);
RETERR
(
str_totext
(
buf
,
target
));
}
RETERR
(
str_totext
(
" "
,
target
));
/*
...
...
Write
Preview
Supports
Markdown
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