Skip to content

Feat/router#16

Merged
David-A-T-M merged 8 commits into
masterfrom
feat/Router
Feb 8, 2026
Merged

Feat/router#16
David-A-T-M merged 8 commits into
masterfrom
feat/Router

Conversation

@David-A-T-M
Copy link
Copy Markdown
Owner

@David-A-T-M David-A-T-M commented Feb 8, 2026

TO DO

- Packet fields from int to size_t
- Removed unnecessary field validations
- Removed unnecessary tests
- Added an IP field for identification of the outputBuffers for routers and terminals
- Added a new constructor with an ip parameter.
- Implemented a getter for the IP
- Added tests for new constructor and getter
- Added a size_t field for received packets.
- Implemented a getter for receivedPackets
- Validation of IP for a router and initialization of receivedPackets to zero
- Count of receivedPackets in Terminal::receivePacket
- Added an IP field and a constructor within MockRouter testing class
- Added a ProcessOutputBuffer TEST
- Implemented struct Routes with two IPAddress fields
- RoutingTable has a List<Routes> of entries
- Implemented set/get for a specific IPAddress
- Fully tested: SetEmptyTable, SetMultipleEntries, UpdateExistingEntry
- Uses std::unique_ptr to have the ownership of the terminals
- Fully tested
- bool routePacket(Packet packet); to bool routePacket(Packet packet);
- routerIsConnected and terminalIsConnected marked as nodiscard
- use of stl algorithms in getNeighborBufferUsage, routerIsConnected and terminalIsConnected
- RouterConnection initialization list
@David-A-T-M David-A-T-M self-assigned this Feb 8, 2026
@David-A-T-M David-A-T-M linked an issue Feb 8, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Owner Author

@David-A-T-M David-A-T-M left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to merge

@David-A-T-M David-A-T-M merged commit ffe4821 into master Feb 8, 2026
6 checks passed
@David-A-T-M David-A-T-M deleted the feat/Router branch February 8, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat/Router

1 participant