Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
Kea
Commits
c8f37fef
Commit
c8f37fef
authored
Dec 17, 2012
by
JINMEI Tatuya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2429] clarified some comments
parent
33d80f86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/lib/dns/master_loader.cc
src/lib/dns/master_loader.cc
+6
-4
No files found.
src/lib/dns/master_loader.cc
View file @
c8f37fef
...
...
@@ -145,7 +145,7 @@ private:
// Upper limit check when recognizing a specific TTL value from the
// zone file ($TTL, the RR's TTL field, or the SOA minimum). RFC2181
// Section 8 limits the range of TTL values to
unsigned 32-bit integers
,
// Section 8 limits the range of TTL values to
2^31-1 (0x7fffffff)
,
// and prohibits transmitting a TTL field exceeding this range. We
// guarantee that by limiting the value at the time of zone
// parsing/loading, following what BIND 9 does. Resetting it to 0
...
...
@@ -166,8 +166,10 @@ private:
}
}
// Set/reset the default TTL. Either from $TTL or SOA minimum TTL.
// see LimitTTL() for parameter post_parsing.
// Set/reset the default TTL. This should be from either $TTL or SOA
// minimum TTL (it's the caller's responsibility; this method doesn't
// care about where it comes from). see LimitTTL() for parameter
// post_parsing.
void
setDefaultTTL
(
const
RRTTL
&
ttl
,
bool
post_parsing
)
{
if
(
!
default_ttl_
)
{
default_ttl_
.
reset
(
new
RRTTL
(
ttl
));
...
...
@@ -177,7 +179,7 @@ private:
limitTTL
(
*
default_ttl_
,
post_parsing
);
}
// Set/reset the TTL currently being used. This can be used the last
// Set/reset the TTL currently being used. This can be used
as
the last
// resort TTL when no other TTL is known for an RR.
void
setCurrentTTL
(
const
RRTTL
&
ttl
)
{
if
(
!
current_ttl_
)
{
...
...
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