summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2020-10-10 15:34:25 +0200
committerSander Vrijders <sander@ouroboros.rocks>2020-10-11 14:23:44 +0200
commit21dec0f30da7eecf965a3b088c9646029354b431 (patch)
treeb83883f2d0d1c4ec20390a8120ec79cc7c0cfcc1 /include
parentbf736bebbe89618e23fc5cfb19cf049314cce03d (diff)
downloadouroboros-21dec0f30da7eecf965a3b088c9646029354b431.tar.gz
ouroboros-21dec0f30da7eecf965a3b088c9646029354b431.zip
lib: Send and receive window updates
This adds sending and receiving window updates for flow control. I used the 8 pad bits as part of the window update field, so it's 24 bits, allowing for ~16 million packets in flight. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/fccntl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ouroboros/fccntl.h b/include/ouroboros/fccntl.h
index ccd74b6c..0ebc90f3 100644
--- a/include/ouroboros/fccntl.h
+++ b/include/ouroboros/fccntl.h
@@ -46,9 +46,9 @@
#define FLOWFINVALID (FLOWFWRONLY | FLOWFRDWR)
/* FRCT flags */
-#define FRCTFRESCNTRL 00000001 /* Feedback from receiver */
-#define FRCTFRTX 00000002 /* Reliable flow */
-#define FRCTFLINGER 00000004 /* Sent unsent data */
+#define FRCTFRTX 00000001 /* Reliable flow */
+#define FRCTFRESCNTL 00000002 /* Feedback from receiver */
+#define FRCTFLINGER 00000004 /* Send unsent data */
/* Flow operations */
#define FLOWSRCVTIMEO 00000001 /* Set read timeout */