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

Minor issue. 1278 specifies that the beam data length is a char (DIS 6) #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jcassagnol-public
Copy link

I'm not certain about the DIS7 implementation, but it looks like the DIS6 UaPDU has a slight problem with the Acoustic Beam Data struct. The beam data length field is listed as a 8 bit value in the 1278 spec so I changed it from a short to a char and adjusted the marshalled size function by one as well.

This time the PR has the correct committer email :D

@leif81
Copy link
Member

leif81 commented Apr 7, 2022

Thankyou @jcassagnol-public
Do you happen to have a sample pcap that contains a PDU that we could add to a unit test to verify the fix?

@jcassagnol-public
Copy link
Author

jcassagnol-public commented Apr 7, 2022

Good point! I'll generate a PDU with these changes shortly!

edit: maybe not shortly haha. I'll get back with the PDU in a bit. :)
Thanks for the quick response though!

@jcassagnol-public
Copy link
Author

I'll see if I can get the generated PDU later this week, if not this will be delayed by about a month.

@jcassagnol-public
Copy link
Author

Ouch.
I've generated the PDU but it appears that the beams are supposed to be shoved to the end of the PDU. I have to verify that in the 1278 which I'll try to get to tomorrow.
I can attach the current pcap but Wireshark fails to decode the second system's beams correctly, which appears to be due to the beam infixing.

@jcassagnol-public
Copy link
Author

Here's the suspect PCAP (zipped as GitHub appears to block pcaps but allows zips... :D)
suspect_ua_pdu.zip

@leif81 leif81 added the bug label Dec 10, 2022
@leif81 leif81 changed the title Minor issue. 1278 specifies that the beam data length is a char Minor issue. 1278 specifies that the beam data length is a char (DIS 6) Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants