]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet/tcp_cache.h
xnu-3789.1.32.tar.gz
[apple/xnu.git] / bsd / netinet / tcp_cache.h
index 4408fd5ffb3835cbd62b17e07a712d5c12831962..4516d757886b67bce2037c6a970d7205f8fc0201 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Apple Inc. All rights reserved.
+ * Copyright (c) 2015-2016 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  *
 #include <netinet/tcp_var.h>
 #include <netinet/in.h>
 
-/* Number of SYN-losses we accept */
-#define        TFO_MAX_COOKIE_LOSS     2
-#define        ECN_MAX_SYN_LOSS        2
-
 #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" */
 
@@ -45,15 +41,21 @@ 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);
 extern unsigned int tcp_cache_get_cookie_len(struct tcpcb *tp);
 
-extern void tcp_heuristic_inc_loss(struct tcpcb *tp, int tfo, int ecn);
+extern void tcp_heuristic_tfo_loss(struct tcpcb *tp);
+extern void tcp_heuristic_mptcp_loss(struct tcpcb *tp);
+extern void tcp_heuristic_ecn_loss(struct tcpcb *tp);
 extern void tcp_heuristic_tfo_snd_good(struct tcpcb *tp);
 extern void tcp_heuristic_tfo_rcv_good(struct tcpcb *tp);
 extern void tcp_heuristic_tfo_middlebox(struct tcpcb *tp);
 extern void tcp_heuristic_ecn_aggressive(struct tcpcb *tp);
-extern void tcp_heuristic_reset_loss(struct tcpcb *tp, int tfo, int ecn);
 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 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_cache_init(void);