Skip to content
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

Singal PDU dataLength should be in bits, not bytes (DIS 6) #85

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

intothevoid
Copy link
Contributor

As per the spec, the data length is meant to be indicated in bits, not bytes. I've used the fix in the Java version of open-dis as a basis for this pull request. See open-dis/open-dis-java@9b20d4d#diff-5d13a4f131b76879516bb03083caae46

Related issues here: #10 and here: #84

@leif81 leif81 linked an issue Jul 31, 2023 that may be closed by this pull request
@leif81 leif81 linked an issue Jul 31, 2023 that may be closed by this pull request
@leif81
Copy link
Member

leif81 commented Jul 31, 2023

Thank-you for the pull request @intothevoid !

I've reviewed it and have left two comments. Can you please take a look and respond when you can. Thanks

@leif81 leif81 removed a link to an issue Jul 31, 2023
@intothevoid intothevoid force-pushed the fix/data-length-issue branch from b4b6d8e to b56567b Compare August 2, 2023 13:35
@intothevoid
Copy link
Contributor Author

intothevoid commented Aug 2, 2023

I've removed the formatting changes and pushed the changes to the PR. Let me know if you need more changes. Commit here: b56567b

@leif81 leif81 changed the title fix: 🐛 dataLength should be in bits, not bytes Singal PDU dataLength should be in bits, not bytes (DIS 6) Sep 8, 2023
@leif81 leif81 merged commit cf0e625 into open-dis:master Sep 8, 2023
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.

Signal PDU misinterpretation
2 participants