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
Pavel Zhukov
Kea
Commits
bfa3f832
Commit
bfa3f832
authored
Jan 24, 2011
by
Scott Mann
Browse files
Review experimental resolver
Removed some unused debug code and cleaned up some white space.
parent
d3730100
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/bin/resolver/tests/resolver_unittest.cc
View file @
bfa3f832
...
...
@@ -85,7 +85,11 @@ TEST_F(ResolverTest, AXFRFail) {
RRType
::
AXFR
());
createRequestPacket
(
request_message
,
IPPROTO_TCP
);
// AXFR is not implemented and should always send NOTIMP.
server
.
processMessage
(
*
io_message
,
parse_message
,
response_message
,
response_obuffer
,
&
dnsserv
);
server
.
processMessage
(
*
io_message
,
parse_message
,
response_message
,
response_obuffer
,
&
dnsserv
);
EXPECT_TRUE
(
dnsserv
.
hasAnswer
());
headerCheck
(
*
parse_message
,
default_qid
,
Rcode
::
NOTIMP
(),
opcode
.
getCode
(),
QR_FLAG
,
1
,
0
,
0
,
0
);
...
...
@@ -100,7 +104,11 @@ TEST_F(ResolverTest, notifyFail) {
request_message
.
setQid
(
default_qid
);
request_message
.
setHeaderFlag
(
Message
::
HEADERFLAG_AA
);
createRequestPacket
(
request_message
,
IPPROTO_UDP
);
server
.
processMessage
(
*
io_message
,
parse_message
,
response_message
,
response_obuffer
,
&
dnsserv
);
server
.
processMessage
(
*
io_message
,
parse_message
,
response_message
,
response_obuffer
,
&
dnsserv
);
EXPECT_TRUE
(
dnsserv
.
hasAnswer
());
headerCheck
(
*
parse_message
,
default_qid
,
Rcode
::
NOTAUTH
(),
Opcode
::
NOTIFY
().
getCode
(),
QR_FLAG
,
0
,
0
,
0
,
0
);
...
...
src/lib/asiolink/asiolink.cc
View file @
bfa3f832
...
...
@@ -58,8 +58,6 @@ namespace {
message_
(
message
),
section_
(
sect
)
{}
void
operator
()(
const
RRsetPtr
rrset
)
{
//dlog("Adding RRSet to message section " +
// boost::lexical_cast<string>(section_));
message_
->
addRRset
(
section_
,
rrset
,
true
);
}
MessagePtr
message_
;
...
...
src/lib/asiolink/tests/asiolink_unittest.cc
View file @
bfa3f832
...
...
@@ -463,7 +463,8 @@ protected:
inline
void
asyncLookup
()
{
if
(
lookup_
)
{
(
*
lookup_
)(
*
io_message_
,
message_
,
answer_message_
,
respbuf_
,
this
);
(
*
lookup_
)(
*
io_message_
,
message_
,
answer_message_
,
respbuf_
,
this
);
}
}
...
...
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