nasa / CF

The Core Flight System (cFS) CFDP application.
Apache License 2.0
86 stars 46 forks source link

Fix #40, update traverse history/write file #174

Closed jphickey closed 2 years ago

jphickey commented 2 years ago

Describe the contribution

Fixes #40

Testing performed Build and unit test CF. Run two instances of CFE+CF, execute transfer in both directions and confirm Issue CF_WRITE_QUEUE_CC (15) to write the transaction and history queues to the file Confirm contents of the file are correct.

Expected behavior changes The file contains the information it is intended to contain, mainly the SEQ/DIR/PEER/CC bits are not omitted. There is also no risk of buffer overruns.

Here is an example file output, after running two transactions between two nodes (one RX, one TX)

SEQ (2, 1)      DIR: RX PEER 2  CC: 0   SRC: /cf/testfile2      DST: /cf/testfile2
SEQ (1, 1)      DIR: TX PEER 2  CC: 0   SRC: /cf/testfile1      DST: /cf/testfile1

System(s) tested on Ubuntu 21.10

Contributor Info - All information REQUIRED for consideration of pull request Joseph Hickey, Vantage Systems, Inc.

astrogeco commented 2 years ago

CCB:2022-01-19 APPROVED