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
Kirill Smelkov
linux
Commits
6619be03
Commit
6619be03
authored
May 08, 2004
by
David Stevens
Committed by
David S. Miller
May 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: Use time_after() in override ARP calculation.
parent
398b3c44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
net/ipv4/arp.c
net/ipv4/arp.c
+2
-3
No files found.
net/ipv4/arp.c
View file @
6619be03
...
...
@@ -891,15 +891,14 @@ int arp_process(struct sk_buff *skb)
if
(
n
)
{
int
state
=
NUD_REACHABLE
;
int
override
=
0
;
int
override
;
/* If several different ARP replies follows back-to-back,
use the FIRST one. It is possible, if several proxy
agents are active. Taking the first reply prevents
arp trashing and chooses the fastest router.
*/
if
(
jiffies
-
n
->
updated
>=
n
->
parms
->
locktime
)
override
=
1
;
override
=
time_after
(
jiffies
,
n
->
updated
+
n
->
parms
->
locktime
);
/* Broadcast replies and request packets
do not assert neighbour reachability.
...
...
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