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
55b548ae
Commit
55b548ae
authored
Dec 29, 2012
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add RA_INTERVAL parameter in config.h
parent
3b43646a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
src/config.h
src/config.h
+1
-0
src/radv.c
src/radv.c
+4
-4
No files found.
src/config.h
View file @
55b548ae
...
...
@@ -46,6 +46,7 @@
#define SOA_REFRESH 1200
/* SOA refresh default */
#define SOA_RETRY 180
/* SOA retry default */
#define SOA_EXPIRY 1209600
/* SOA expiry default */
#define RA_INTERVAL 600
/* Send unsolicited RA's this often when not provoked. */
/* compile-time options: uncomment below to enable or do eg.
make COPTS=-DHAVE_BROKEN_RTC
...
...
src/radv.c
View file @
55b548ae
...
...
@@ -390,8 +390,8 @@ static int add_prefixes(struct in6_addr *local, int prefix,
if
(
time
>
context
->
lease_time
)
{
time
=
context
->
lease_time
;
if
(
time
<
600u
)
time
=
600
;
if
(
time
<
((
unsigned
int
)
RA_INTERVAL
)
)
time
=
RA_INTERVAL
;
}
if
(
context
->
flags
&
CONTEXT_DEPRECATE
)
...
...
@@ -572,8 +572,8 @@ static int iface_search(struct in6_addr *local, int prefix,
/* range 5 - 20 */
context
->
ra_time
=
param
->
now
+
5
+
(
rand16
()
/
4400
);
else
/* range
450 - 600
*/
context
->
ra_time
=
param
->
now
+
450
+
(
rand16
()
/
440
);
/* range
3/4 - 1 times RA_INTERVAL
*/
context
->
ra_time
=
param
->
now
+
(
3
*
RA_INTERVAL
)
/
4
+
((
RA_INTERVAL
*
(
unsigned
int
)
rand16
())
>>
18
);
/* zero timers for other contexts on the same subnet, so they don't timeout
independently */
...
...
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