|
@@ -1652,7 +1652,7 @@ static sctp_cookie_param_t *sctp_pack_cookie(const struct sctp_endpoint *ep,
|
|
|
|
|
|
/* Set an expiration time for the cookie. */
|
|
|
cookie->c.expiration = ktime_add(asoc->cookie_life,
|
|
|
- ktime_get());
|
|
|
+ ktime_get_real());
|
|
|
|
|
|
/* Copy the peer's init packet. */
|
|
|
memcpy(&cookie->c.peer_init[0], init_chunk->chunk_hdr,
|
|
@@ -1780,7 +1780,7 @@ no_hmac:
|
|
|
if (sock_flag(ep->base.sk, SOCK_TIMESTAMP))
|
|
|
kt = skb_get_ktime(skb);
|
|
|
else
|
|
|
- kt = ktime_get();
|
|
|
+ kt = ktime_get_real();
|
|
|
|
|
|
if (!asoc && ktime_before(bear_cookie->expiration, kt)) {
|
|
|
/*
|