-
Notifications
You must be signed in to change notification settings - Fork 703
#1754 Add Modbus Support #1823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
#1754 Add Modbus Support #1823
Conversation
yahyayozo
commented
May 18, 2025
- Add ModbusLayer first implementation with header parsing only (no test included)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #1823 +/- ##
==========================================
+ Coverage 80.40% 83.00% +2.59%
==========================================
Files 278 284 +6
Lines 44998 48877 +3879
Branches 10245 10560 +315
==========================================
+ Hits 36180 40569 +4389
- Misses 7033 7526 +493
+ Partials 1785 782 -1003
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@seladb I've prepared only 1 constructor which initiates the layer with default fields values |
@yahyayozo we usually have at least 2 c'tors, sometimes more:
|
…sPlus into feature/modbus
Hi @seladb can you please guide me briefly on how to add tests for my ModbusLayer for parsing/crafting headers? As I want to pass to function types request/response after testing the header part. |
@yahyayozo sure! You can learn about tests here: https://pcapplusplus.github.io/docs/tests At a high level:
Please look at similar tests that were written for other layers and follow the same patterns. Please let me know if you have any questions. |
@seladb I'll add tests for the headers crafting/parsing implementation and then you can a review before we move to adding the different PDU types |