New RX PDU dropped due to max RX transactions reached on channel not counted

Open
#268 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c

Research direction

Start in fsw/src/cf_cfdp_sbintf.c around lines 260-261 and trace the max-RX-transactions path through CF_CFDP_RecvDrop. Confirm how the channel number and dropped counter are handled when no transaction is created. Done means this condition is counted for the receiving channel and the behavior is covered by the relevant existing test path.

Written by the indexing model from the issue text.

Description

enhancement

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I reviewed the CF README.md file to see if the feature is in the major future work.
  • I performed a cursory search to see if the feature request is relevant, not redundant, nor in conflict with other tickets.

Is your feature request related to a problem? Please describe.
There's a strange comment about "no known channel" as justification for dropping a new RX PDU without incrementing the channel dropped receive counter, yet the channel number is known since it's received on the channel pipe and the local EID matches.
https://github.com/nasa/CF/blob/1ba450b3d7edd2cd63d9db104ce5201ccca16e28/fsw/src/cf_cfdp_sbintf.c#L260-L261

Describe the solution you'd like
I'd expect the dropped counter to increment as a way to track this condition per channel. There isn't a transaction set up or a CF_CFDP_DispatchRecv called, but all the CF_CFDP_RecvDrop call does is increment the dropped counter anyways.

Describe alternatives you've considered
Maybe the received "dropped" counter is only intended for RX transactions that have been started... seems like useful information though. Probably also useful to track with a counter if the event gets filtered.

Additional context
I couldn't find a requirement so likely derived.

Requester Info
Jacob Hageman - NASA/GSFC

Dominant language
C
Stars
123
Forks
82
Avg merge
2d 22h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nasa/CF

All issues in nasa/CF

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.