diff options
author | Dimitri Staessens <[email protected]> | 2018-11-20 18:59:15 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2018-11-21 09:14:18 +0100 |
commit | 5f5edf2ddb94bbf7571d511eb6bdbe8d3798408b (patch) | |
tree | 63a90b7f71aeaeccc0fc56bb9cf5c0858cec5062 /src/lib/frct.c | |
parent | 47310e444ec8f0119b30fd72f5046a5687c909f6 (diff) | |
download | ouroboros-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 <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib/frct.c')
-rw-r--r-- | src/lib/frct.c | 3 |
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 { |