Skip to content
GitLab
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
8d00c5ab
Commit
8d00c5ab
authored
Feb 02, 2016
by
Mark Andrews
Browse files
4312. [bug] dig's unknown dns and edns flags (MBZ value) logging
was not consistent. [RT #41600]
parent
e370cdf4
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
8d00c5ab
4312. [bug] dig's unknown dns and edns flags (MBZ value) logging
was not consistent. [RT #41600]
4311. [bug] Prevent "rndc delzone" from being used on
response-policy zones. [RT #41593]
...
...
bin/tests/system/ednscompliance/tests.sh
View file @
8d00c5ab
...
...
@@ -38,10 +38,10 @@ if [ $ret != 0 ]; then echo "I:failed $reason"; fi
status
=
`
expr
$status
+
$ret
`
n
=
`
expr
$n
+ 1
`
echo
"I:check +ednsflags=0x80 sets flags to 0080 (
$n
)"
echo
"I:check +ednsflags=0x80 sets flags to
0x
0080 (
$n
)"
ret
=
0
reason
=
$DIG
-p
5300 @10.53.0.1 +qr +norec +ednsflags
=
0x80 soa
$zone
>
dig.out
$n
grep
"MBZ: 0080"
dig.out
$n
>
/dev/null
||
{
ret
=
1
;
reason
=
"flags"
;
}
grep
"MBZ:
0x
0080
,
"
dig.out
$n
>
/dev/null
||
{
ret
=
1
;
reason
=
"flags"
;
}
if
[
$ret
!=
0
]
;
then
echo
"I:failed
$reason
"
;
fi
status
=
`
expr
$status
+
$ret
`
...
...
lib/dns/message.c
View file @
8d00c5ab
...
...
@@ -3327,7 +3327,7 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
mbz
&=
~
DNS_MESSAGEEXTFLAG_DO
;
/* Known Flags. */
if
(
mbz
!=
0
)
{
ADD_STRING
(
target
,
"; MBZ: "
);
snprintf
(
buf
,
sizeof
(
buf
),
"%.4x
"
,
mbz
);
snprintf
(
buf
,
sizeof
(
buf
),
"
0x
%.4x"
,
mbz
);
ADD_STRING
(
target
,
buf
);
ADD_STRING
(
target
,
", udp: "
);
}
else
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment