]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - net/dccp/ccids/ccid2.h
dccp ccid-2: prevent cwnd > Sequence Window
[mirror_ubuntu-zesty-kernel.git] / net / dccp / ccids / ccid2.h
index f585d330e1e55cba3e41c80a082a4431804b0167..18c97543e522a6b9a5c8a3c817d4b40224adde48 100644 (file)
@@ -43,6 +43,12 @@ struct ccid2_seq {
 #define CCID2_SEQBUF_LEN 1024
 #define CCID2_SEQBUF_MAX 128
 
+/*
+ * Multiple of congestion window to keep the sequence window at
+ * (RFC 4340 7.5.2)
+ */
+#define CCID2_WIN_CHANGE_FACTOR 5
+
 /**
  * struct ccid2_hc_tx_sock - CCID2 TX half connection
  * @tx_{cwnd,ssthresh,pipe}: as per RFC 4341, section 5