-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Compute PDU length from MBAP Length field directly. #642
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
Conversation
For Modbus TCP, the PDU length can be computed directly from the Length field of the header (MBAP).
We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get added. Your document will be manually checked by the maintainer. Be patient... |
CLA signed. |
How does this help with anything though? |
Recently, I tried to use |
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Ji WenCong.
|
The PDU length computes from MBAP Length field shall be validated to ensure that PDU is not too short to be read.
We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get added. Your document will be manually checked by the maintainer. Be patient... |
The only right way of handling custom requests is via one of the other PRs, #140 or similar. Your method only helps for tcp, and only for some cases, it doesn't sound like code that should be "standard" in the library? |
The only right way is following the specification, not a bunch of hacks. |
For Modbus TCP, the PDU length can be computed directly from the Length field of the header (MBAP).