X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/5ba3f43ea354af8ad55bea84372a2bc834d8757c..HEAD:/bsd/netinet/tcp_cache.h diff --git a/bsd/netinet/tcp_cache.h b/bsd/netinet/tcp_cache.h index bd7044ea3..9259076ca 100644 --- a/bsd/netinet/tcp_cache.h +++ b/bsd/netinet/tcp_cache.h @@ -34,8 +34,8 @@ #include #include -#define ECN_MIN_CE_PROBES 10 /* Probes are basically the number of incoming packets */ -#define ECN_MAX_CE_RATIO 7 /* Ratio is the maximum number of CE-packets we accept per incoming "probe" */ +#define ECN_MIN_CE_PROBES 10 /* Probes are basically the number of incoming packets */ +#define ECN_MAX_CE_RATIO 7 /* Ratio is the maximum number of CE-packets we accept per incoming "probe" */ extern void tcp_cache_set_cookie(struct tcpcb *tp, u_char *cookie, u_int8_t len); extern int tcp_cache_get_cookie(struct tcpcb *tp, u_char *cookie, u_int8_t *len); @@ -51,24 +51,23 @@ extern void tcp_heuristic_tfo_success(struct tcpcb *tp); extern void tcp_heuristic_mptcp_success(struct tcpcb *tp); extern void tcp_heuristic_ecn_success(struct tcpcb *tp); extern boolean_t tcp_heuristic_do_tfo(struct tcpcb *tp); -extern boolean_t tcp_heuristic_do_mptcp(struct tcpcb *tp); +extern int tcp_heuristic_do_mptcp(struct tcpcb *tp); extern boolean_t tcp_heuristic_do_ecn(struct tcpcb *tp); extern void tcp_heuristic_ecn_droprst(struct tcpcb *tp); extern void tcp_heuristic_ecn_droprxmt(struct tcpcb *tp); extern void tcp_heuristic_ecn_synrst(struct tcpcb *tp); extern boolean_t tcp_heuristic_do_ecn_with_address(struct ifnet *ifp, - union sockaddr_in_4_6 *local_address); + union sockaddr_in_4_6 *local_address); extern void tcp_heuristics_ecn_update(struct necp_tcp_ecn_cache *necp_buffer, - struct ifnet *ifp, union sockaddr_in_4_6 *local_address); + struct ifnet *ifp, union sockaddr_in_4_6 *local_address); extern boolean_t tcp_heuristic_do_tfo_with_address(struct ifnet *ifp, - union sockaddr_in_4_6 *local_address, union sockaddr_in_4_6 *remote_address, - u_int8_t *cookie, u_int8_t *cookie_len); + union sockaddr_in_4_6 *local_address, union sockaddr_in_4_6 *remote_address, + u_int8_t *cookie, u_int8_t *cookie_len); extern void tcp_heuristics_tfo_update(struct necp_tcp_tfo_cache *necp_buffer, - struct ifnet *ifp, union sockaddr_in_4_6 *local_address, - union sockaddr_in_4_6 *remote_address); + struct ifnet *ifp, union sockaddr_in_4_6 *local_address, + union sockaddr_in_4_6 *remote_address); extern void tcp_cache_init(void); #endif /* _NETINET_TCP_CACHE_H */ -