Nicolas Dichtel bc9259a8ba inetpeer: fix token initialization
When jiffies wraps around (for example, 5 minutes after the boot, see
INITIAL_JIFFIES) and peer has just been created, now - peer->rate_last can be
< XRLIM_BURST_FACTOR * timeout, so token is not set to the maximum value, thus
some icmp packets can be unexpectedly dropped.

Fix this case by initializing last_rate to 60 seconds in the past.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-09-27 19:27:39 -04:00
..
2012-07-16 22:31:34 -07:00
2012-09-27 19:27:39 -04:00
2012-07-30 14:53:21 -07:00
2012-07-31 18:42:43 -07:00
2012-09-22 15:35:05 -04:00
2012-07-19 10:55:36 -07:00
2012-07-19 10:55:36 -07:00
2012-07-16 22:31:34 -07:00