X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/94ff46dc2849db4d43eaaf144872decc522aafb4..HEAD:/bsd/netinet/tcp_timer.h?ds=sidebyside diff --git a/bsd/netinet/tcp_timer.h b/bsd/netinet/tcp_timer.h index 8b8435722..8d09d9cb6 100644 --- a/bsd/netinet/tcp_timer.h +++ b/bsd/netinet/tcp_timer.h @@ -205,8 +205,6 @@ extern int tcptv_persmin_val; */ #define TCP_RCV_SS_PKTCOUNT 512 -/* Receiver idle time, for rcv socket buffer resizing */ -#define TCPTV_RCVBUFIDLE (TCP_RETRANSHZ/2) #define TCPTV_TWTRUNC 8 /* RTO factor to truncate TW */ #define TCP_LINGERTIME 120 /* linger at most 2 minutes */ @@ -303,13 +301,13 @@ struct tcptimerlist { #define TCP_CONN_KEEPIDLE(tp) \ ((tp)->t_keepidle && \ ((tp)->t_inpcb->inp_socket->so_options & SO_KEEPALIVE) ? \ - (tp)->t_keepidle : tcp_keepidle) + (tp)->t_keepidle : (uint32_t)tcp_keepidle) #define TCP_CONN_KEEPINIT(tp) \ - (((tp)->t_keepinit > 0) ? (tp)->t_keepinit : tcp_keepinit) + (((tp)->t_keepinit > 0) ? (tp)->t_keepinit : (uint32_t)tcp_keepinit) #define TCP_CONN_KEEPCNT(tp) \ - (((tp)->t_keepcnt > 0) ? (tp)->t_keepcnt : tcp_keepcnt) + (((tp)->t_keepcnt > 0) ? (tp)->t_keepcnt : (uint32_t)tcp_keepcnt) #define TCP_CONN_KEEPINTVL(tp) \ - (((tp)->t_keepintvl > 0) ? (tp)->t_keepintvl : tcp_keepintvl) + (((tp)->t_keepintvl > 0) ? (tp)->t_keepintvl : (uint32_t)tcp_keepintvl) #define TCP_CONN_MAXIDLE(tp) \ (TCP_CONN_KEEPCNT(tp) * TCP_CONN_KEEPINTVL(tp))