diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/tcp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index f0c9e3400a09..181c0600af1c 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1014,7 +1014,7 @@ static inline int tcp_paws_check(const struct tcp_options_received *rx_opt, int | |||
1014 | { | 1014 | { |
1015 | if ((s32)(rx_opt->rcv_tsval - rx_opt->ts_recent) >= 0) | 1015 | if ((s32)(rx_opt->rcv_tsval - rx_opt->ts_recent) >= 0) |
1016 | return 0; | 1016 | return 0; |
1017 | if (xtime.tv_sec >= rx_opt->ts_recent_stamp + TCP_PAWS_24DAYS) | 1017 | if (get_seconds() >= rx_opt->ts_recent_stamp + TCP_PAWS_24DAYS) |
1018 | return 0; | 1018 | return 0; |
1019 | 1019 | ||
1020 | /* RST segments are not recommended to carry timestamp, | 1020 | /* 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 | |||
1029 | 1029 | ||
1030 | However, we can relax time bounds for RST segments to MSL. | 1030 | However, we can relax time bounds for RST segments to MSL. |
1031 | */ | 1031 | */ |
1032 | if (rst && xtime.tv_sec >= rx_opt->ts_recent_stamp + TCP_PAWS_MSL) | 1032 | if (rst && get_seconds() >= rx_opt->ts_recent_stamp + TCP_PAWS_MSL) |
1033 | return 0; | 1033 | return 0; |
1034 | return 1; | 1034 | return 1; |
1035 | } | 1035 | } |