Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are a lot of cosmetic changes in this PR, but also some things that are necessary for the Ethernet shim DIF. The commits in question are 676c98e and e7f20eb.
Read the corresponding commit messages (press the ellipsis next to the commits) to see an explanation. My thesis contains a more complete explanation of why the connection status check is required.
The changes marked "refactor" do not make execution flow changes to the code, only rearranges code and removes some signals that obfuscate the meaning of the code. This is just a small dent, as some of the uses of signals have you go through 3-4 files before you end up in the function the signal is supposed to trigger, and this was a pain when first trying to understand the codebase. I imagine it will also be problematic for the next person who implements a shim DIF of another type, so I changed a little bit to make the code slightly more readable.
This is just a patch added (
git add --patch
) version of parts of this repo: https://github.com/karlhto/RINA-thesisCheck it out for proper commit dates. :)