Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
8f3f6eef
Commit
8f3f6eef
authored
Dec 28, 2011
by
JINMEI Tatuya
Browse files
[1502] revised the logic of checking equality of RR types as suggested in review
parent
760720cb
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lib/python/isc/xfrin/diff.py
View file @
8f3f6eef
...
...
@@ -166,9 +166,8 @@ class Diff:
'''A helper routine to identify whether two RRsets are of the
same 'type'. For RRSIGs we should consider type covered, too.
'''
if
rrset1
.
get_type
()
!=
rrset2
.
get_type
():
return
False
if
rrset1
.
get_type
()
!=
isc
.
dns
.
RRType
.
RRSIG
():
if
rrset1
.
get_type
()
!=
isc
.
dns
.
RRType
.
RRSIG
()
or
\
rrset2
.
get_type
!=
isc
.
dns
.
RRType
.
RRSIG
():
return
rrset1
.
get_type
()
==
rrset2
.
get_type
()
# RR type of the both RRsets is RRSIG. Compare type covered.
# We know they have exactly one RDATA.
...
...
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