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
Adam Osuchowski
Kea
Commits
e64974cc
Commit
e64974cc
authored
Jan 14, 2014
by
Mukund Sivaraman
Browse files
Merge branch 'trac688'
parents
ec856ca7
48ce1e8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/message.cc
View file @
e64974cc
...
...
@@ -522,7 +522,7 @@ Message::addRRset(const Section section, RRsetPtr rrset) {
bool
Message
::
hasRRset
(
const
Section
section
,
const
Name
&
name
,
const
RRClass
&
rrclass
,
const
RRType
&
rrtype
)
const
RRClass
&
rrclass
,
const
RRType
&
rrtype
)
const
{
if
(
static_cast
<
int
>
(
section
)
>=
MessageImpl
::
NUM_SECTIONS
)
{
isc_throw
(
OutOfRange
,
"Invalid message section: "
<<
section
);
...
...
@@ -540,8 +540,9 @@ Message::hasRRset(const Section section, const Name& name,
}
bool
Message
::
hasRRset
(
const
Section
section
,
const
RRsetPtr
&
rrset
)
{
return
(
hasRRset
(
section
,
rrset
->
getName
(),
rrset
->
getClass
(),
rrset
->
getType
()));
Message
::
hasRRset
(
const
Section
section
,
const
RRsetPtr
&
rrset
)
const
{
return
(
hasRRset
(
section
,
rrset
->
getName
(),
rrset
->
getClass
(),
rrset
->
getType
()));
}
bool
...
...
src/lib/dns/message.h
View file @
e64974cc
...
...
@@ -481,14 +481,14 @@ public:
/// This should probably be extended to be a "find" method that returns
/// a matching RRset if found.
bool
hasRRset
(
const
Section
section
,
const
Name
&
name
,
const
RRClass
&
rrclass
,
const
RRType
&
rrtype
);
const
RRClass
&
rrclass
,
const
RRType
&
rrtype
)
const
;
/// \brief Determine whether the given section already has an RRset
/// matching the one pointed to by the argumet
///
/// \c section must be a valid constant of the \c Section type;
/// otherwise, an exception of class \c OutOfRange will be thrown.
bool
hasRRset
(
const
Section
section
,
const
RRsetPtr
&
rrset
);
bool
hasRRset
(
const
Section
section
,
const
RRsetPtr
&
rrset
)
const
;
/// \brief Remove RRSet from Message
///
...
...
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