Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
901d6cc4
Commit
901d6cc4
authored
May 03, 2003
by
James Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: Choose new rt_hash_rnd every rt_run_flush.
parent
8ea7b479
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
net/ipv4/route.c
net/ipv4/route.c
+2
-1
No files found.
net/ipv4/route.c
View file @
901d6cc4
...
...
@@ -508,6 +508,8 @@ static void SMP_TIMER_NAME(rt_run_flush)(unsigned long dummy)
rt_deadline
=
0
;
get_random_bytes
(
&
rt_hash_rnd
,
4
);
for
(
i
=
rt_hash_mask
;
i
>=
0
;
i
--
)
{
spin_lock_bh
(
&
rt_hash_table
[
i
].
lock
);
rth
=
rt_hash_table
[
i
].
chain
;
...
...
@@ -570,7 +572,6 @@ static void rt_secret_rebuild(unsigned long dummy)
{
unsigned
long
now
=
jiffies
;
get_random_bytes
(
&
rt_hash_rnd
,
4
);
rt_cache_flush
(
0
);
mod_timer
(
&
rt_secret_timer
,
now
+
ip_rt_secret_interval
);
}
...
...
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