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
1ecbaaa3
Commit
1ecbaaa3
authored
Jul 25, 2013
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak parameter lifetimes in Router advertisements.
parent
d859ca2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/radv.c
src/radv.c
+4
-4
No files found.
src/radv.c
View file @
1ecbaaa3
...
@@ -291,7 +291,7 @@ static void send_ra(time_t now, int iface, char *iface_name, struct in6_addr *de
...
@@ -291,7 +291,7 @@ static void send_ra(time_t now, int iface, char *iface_name, struct in6_addr *de
put_opt6_char
(
ICMP6_OPT_DNSSL
);
put_opt6_char
(
ICMP6_OPT_DNSSL
);
put_opt6_char
(
len
+
1
);
put_opt6_char
(
len
+
1
);
put_opt6_short
(
0
);
put_opt6_short
(
0
);
put_opt6_long
(
1800
);
/* lifetime - twice RA retransmit */
put_opt6_long
(
RA_INTERVAL
*
2
);
/* lifetime - twice RA retransmit */
put_opt6
(
opt_cfg
->
val
,
opt_cfg
->
len
);
put_opt6
(
opt_cfg
->
val
,
opt_cfg
->
len
);
/* pad */
/* pad */
...
@@ -386,12 +386,12 @@ static int add_prefixes(struct in6_addr *local, int prefix,
...
@@ -386,12 +386,12 @@ static int add_prefixes(struct in6_addr *local, int prefix,
param
->
other
=
1
;
param
->
other
=
1
;
}
}
/* find floor time, don't reduce below RA interval. */
/* find floor time, don't reduce below
3 *
RA interval. */
if
(
time
>
context
->
lease_time
)
if
(
time
>
context
->
lease_time
)
{
{
time
=
context
->
lease_time
;
time
=
context
->
lease_time
;
if
(
time
<
((
unsigned
int
)
RA_INTERVAL
))
if
(
time
<
((
unsigned
int
)
(
3
*
RA_INTERVAL
)
))
time
=
RA_INTERVAL
;
time
=
3
*
RA_INTERVAL
;
}
}
if
(
context
->
flags
&
CONTEXT_DEPRECATE
)
if
(
context
->
flags
&
CONTEXT_DEPRECATE
)
...
...
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