Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
9f48ffa1
Commit
9f48ffa1
authored
Jul 28, 2013
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply ceiling of configured dhcp-range leasetime to deprecated prefix adverts.
parent
871d4562
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/dhcp6.c
src/dhcp6.c
+4
-0
No files found.
src/dhcp6.c
View file @
9f48ffa1
...
@@ -625,6 +625,10 @@ void dhcp_construct_contexts(time_t now)
...
@@ -625,6 +625,10 @@ void dhcp_construct_contexts(time_t now)
/* previously constructed context has gone. advertise it's demise */
/* previously constructed context has gone. advertise it's demise */
context
->
flags
|=
CONTEXT_OLD
;
context
->
flags
|=
CONTEXT_OLD
;
context
->
address_lost_time
=
now
;
context
->
address_lost_time
=
now
;
/* Apply same ceiling of configured lease time as in radv.c */
if
(
context
->
saved_valid
>
context
->
lease_time
)
context
->
saved_valid
=
context
->
lease_time
;
/* maximum time is 2 hours, from RFC */
if
(
context
->
saved_valid
>
7200
)
/* 2 hours */
if
(
context
->
saved_valid
>
7200
)
/* 2 hours */
context
->
saved_valid
=
7200
;
context
->
saved_valid
=
7200
;
ra_start_unsolicted
(
now
,
context
);
ra_start_unsolicted
(
now
,
context
);
...
...
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