mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[NET]: Convert xtime.tv_sec to get_seconds()
Where appropriate, convert references to xtime.tv_sec to the get_seconds() helper function. Signed-off-by: James Morris <jmorris@namei.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
39df232f1a
commit
9d729f72dc
9 changed files with 26 additions and 26 deletions
|
@ -1014,7 +1014,7 @@ static inline int tcp_paws_check(const struct tcp_options_received *rx_opt, int
|
|||
{
|
||||
if ((s32)(rx_opt->rcv_tsval - rx_opt->ts_recent) >= 0)
|
||||
return 0;
|
||||
if (xtime.tv_sec >= rx_opt->ts_recent_stamp + TCP_PAWS_24DAYS)
|
||||
if (get_seconds() >= rx_opt->ts_recent_stamp + TCP_PAWS_24DAYS)
|
||||
return 0;
|
||||
|
||||
/* RST segments are not recommended to carry timestamp,
|
||||
|
@ -1029,7 +1029,7 @@ static inline int tcp_paws_check(const struct tcp_options_received *rx_opt, int
|
|||
|
||||
However, we can relax time bounds for RST segments to MSL.
|
||||
*/
|
||||
if (rst && xtime.tv_sec >= rx_opt->ts_recent_stamp + TCP_PAWS_MSL)
|
||||
if (rst && get_seconds() >= rx_opt->ts_recent_stamp + TCP_PAWS_MSL)
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue