Eric Dumazet 6dd10a6235 [NET] random : secure_tcp_sequence_number should not assume CONFIG_KTIME_SCALAR
All 32 bits machines but i386 dont have CONFIG_KTIME_SCALAR. On these
machines, ktime.tv64 is more than 4 times the (correct) result given
by ktime_to_ns()

Again on these machines, using ktime_get_real().tv64 >> 6 give a
32bits rollover every 64 seconds, which is not wanted (less than the
120 s MSL)

Using ktime_to_ns() is the portable way to get nsecs from a ktime, and
have correct code.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-11-13 21:12:14 -08:00
..
2007-11-06 10:12:44 +10:00
2007-10-18 14:37:32 -07:00
2007-10-17 08:42:52 -07:00
2007-10-17 08:42:52 -07:00
2007-05-08 11:15:09 -07:00
2006-10-04 07:55:13 -07:00
2007-10-19 23:21:04 +02:00
2007-05-21 09:18:19 -07:00
2007-10-17 08:43:00 -07:00
2007-10-19 23:21:04 +02:00
2007-10-23 15:49:55 +10:00
2007-02-20 17:11:55 +00:00
2007-10-17 08:43:01 -07:00
2007-10-23 15:49:55 +10:00
2007-07-19 10:04:43 -07:00
2007-10-29 07:41:32 -07:00
2007-07-29 17:09:29 -07:00
2007-10-18 14:37:27 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-17 08:42:55 -07:00
2007-02-12 09:48:30 -08:00
2007-07-21 17:49:16 -07:00
2007-10-18 14:37:23 -07:00
2007-07-16 09:05:46 -07:00
2007-10-19 11:53:43 -07:00
2007-07-16 09:05:47 -07:00
2006-12-20 16:37:48 +11:00
2007-10-17 08:42:56 -07:00
2007-10-19 11:53:34 -07:00