net: dccp: switch rx_tstamp_last_feedback to monotonic clock
authorEric Dumazet <edumazet@google.com>
Fri, 22 Jun 2018 13:44:15 +0000 (06:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jun 2018 01:46:44 +0000 (10:46 +0900)
commit0ce4e70ff00662ad7490e545ba0cd8c1fa179fca
tree4959b26fee49e3465efd6d73539b74d459340870
parent74174fe5634ffbf645a7ca5a261571f700b2f332
net: dccp: switch rx_tstamp_last_feedback to monotonic clock

To compute delays, better not use time of the day which can
be changed by admins or malicious programs.

Also change ccid3_first_li() to use s64 type for delta variable
to avoid potential overflows.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Cc: dccp@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ccids/ccid3.c