summaryrefslogtreecommitdiff
path: root/include/target
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>2015-12-04 15:14:03 -0200
committerDavid S. Miller <davem@davemloft.net>2015-12-05 22:23:22 -0500
commitcb5e173ed7c03a0d4630ce68a95a186cce3cc872 (patch)
tree9a58f00e91ae24bfa4c55cedb0303eb5ad3bc222 /include/target
parentc5fb8caaf91ea6a92920cf24db10cfc94d58de0f (diff)
sctp: use the same clock as if sock source timestamps were on
SCTP echoes a cookie o INIT ACK chunks that contains a timestamp, for detecting stale cookies. This cookie is echoed back to the server by the client and then that timestamp is checked. Thing is, if the listening socket is using packet timestamping, the cookie is encoded with ktime_get() value and checked against ktime_get_real(), as done by __net_timestamp(). The fix is to sctp also use ktime_get_real(), so we can compare bananas with bananas later no matter if packet timestamping was enabled or not. Fixes: 52db882f3fc2 ("net: sctp: migrate cookie life from timeval to ktime") Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Acked-by: Vlad Yasevich <vyasevich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions