diff options
author | Dimitri Staessens <[email protected]> | 2018-10-15 12:36:07 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2018-10-15 13:30:56 +0200 |
commit | 8b457e304186c8512139018fcdebc1c221d22ef0 (patch) | |
tree | db52b4a8092e5be0a77d15f16da526c4c3a5b9a4 | |
parent | 36b89517affd96c9e323af9a4e6e88c8f0938caf (diff) | |
download | ouroboros-8b457e304186c8512139018fcdebc1c221d22ef0.tar.gz ouroboros-8b457e304186c8512139018fcdebc1c221d22ef0.zip |
lib: Remove CRC flag from FRCT
The integrity check mechanism was split from FRCT, this flag is not
needed anymore.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
-rw-r--r-- | src/lib/frct.c | 1 | ||||
-rw-r--r-- | src/lib/rxmwheel.c | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/frct.c b/src/lib/frct.c index 6041279a..ce6cc258 100644 --- a/src/lib/frct.c +++ b/src/lib/frct.c @@ -66,7 +66,6 @@ enum frct_flags { FRCT_FC = 0x08, /* FC window valid */ FRCT_RDVZ = 0x10, /* Rendez-vous */ FRCT_MFGM = 0x20, /* More fragments */ - FRCT_CRC = 0x40, /* CRC present */ }; struct frct_pci { diff --git a/src/lib/rxmwheel.c b/src/lib/rxmwheel.c index 69151801..c75aaab3 100644 --- a/src/lib/rxmwheel.c +++ b/src/lib/rxmwheel.c @@ -88,7 +88,7 @@ static void rxmwheel_clear(int fd) { size_t i; - /* FIXME: Add list element to avoid looping over full rxmwheel */ + /* FIXME: Add list element to avoid looping over full rxmwheel. */ pthread_mutex_lock(&rw.lock); for (i = 0; i < RXMQ_SLOTS; ++i) { @@ -174,11 +174,11 @@ static int rxmwheel_move(void) head = shm_du_buff_head(sdb); memcpy(head, r->head, r->tail - r->head); - /* Release the old copy */ + /* Release the old copy. */ shm_du_buff_ack(r->sdb); ipcp_sdb_release(r->sdb); - /* Update ackno and make sure DRF is not set*/ + /* Update ackno and make sure DRF is not set. */ ((struct frct_pci *) head)->ackno = ntoh32(rcv_cr->lwe); ((struct frct_pci *) head)->flags &= ~FRCT_DRF; |