@@ -891,15 +891,14 @@if(n){intstate=NUD_REACHABLE;-intoverride=0;+intoverride;/* If several different ARP replies follows back-to-back,usetheFIRSTone.Itispossible,ifseveralproxyagentsareactive.Takingthefirstreplypreventsarptrashingandchoosesthefastestrouter.*/-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.
From: David S. Miller <hidden> Date: 2004-05-07 21:55:01
On Fri, 7 May 2004 14:51:13 -0700
David Stevens [off-list ref] wrote:
David S. Miller wrote on 05/07/2004 02:40:00 PM:
quoted
David, do you realize that the existing formula is not only
correct, but also covers a greater time space than the
time_*() mechanisms do?
ARG! you're right, of course-- I noticed only that they are
different and didn't think about it actually be right! :-)
But note that the main point is also that your change is
still correct.
The only reason I know about the time space issue with these
tests is that Alexey mentioned it to me when I was converting
most of the TCP code over to use the time_*() macros.
It is a policy decision whether it is more valuable to be
more consistent or support the larger time space in tests
here and there.
I think it is more important to be consistent, so I'm going
to apply your patch. And for ARP the larger time space would
never matter anyways :-)