summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-11-20 18:59:15 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2018-11-21 09:14:18 +0100
commit5f5edf2ddb94bbf7571d511eb6bdbe8d3798408b (patch)
tree63a90b7f71aeaeccc0fc56bb9cf5c0858cec5062
parent47310e444ec8f0119b30fd72f5046a5687c909f6 (diff)
downloadouroboros-5f5edf2ddb94bbf7571d511eb6bdbe8d3798408b.tar.gz
ouroboros-5f5edf2ddb94bbf7571d511eb6bdbe8d3798408b.zip
lib: Add First Fragment (FFGM) bit to FRCT
This adds a First Fragment bit to FRCT. This small optimisation avoids losing two packets when there is packet loss without fragmentation, without the need to disable fragmentation at the end points. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
-rw-r--r--src/lib/frct.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/frct.c b/src/lib/frct.c
index ce6cc258..b56b1e3d 100644
--- a/src/lib/frct.c
+++ b/src/lib/frct.c
@@ -65,7 +65,8 @@ enum frct_flags {
FRCT_ACK = 0x04, /* ACK field valid */
FRCT_FC = 0x08, /* FC window valid */
FRCT_RDVZ = 0x10, /* Rendez-vous */
- FRCT_MFGM = 0x20, /* More fragments */
+ FRCT_FFGM = 0x20, /* First Fragment */
+ FRCT_MFGM = 0x40, /* More fragments */
};
struct frct_pci {