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

Misc fixups #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Misc fixups #1

wants to merge 7 commits into from

Conversation

ao2
Copy link

@ao2 ao2 commented Oct 25, 2020

Here are some misc fixes for USB devices.

Ciao, Antonio

The least significant bit on cmd1 is a continuation flag, on some USB
devices some upload commands can be chunked and this flag indicates
whether the packet is a continuation of a previous message.
Enable the dissectors on some known USB devices, and allow to manually
add the v2 encapsulation dissector to USB devices as well.
Just change the order of some lines to make future changes more
readable.
…ackets

Skip parsing body for continuation packets for now, as they have
a different structure, maybe the cmd name parsing could be added back,
but it seemed more work that it was worth.

Also fix the checksum position for normal packets, in USB communication
the body can be smaller than the packet size, so the checksum is not
always the last byte of the packet.
The 0xd2 message is used on some USB devices, supposedly for a TLS-like
handshake, only add some placeholders also for replies as there are
replies to this message.
The 0xE and 0xF packet descriptions ended up in the wrong dictionary
level and were not processed as expected, restore them and add some
tentative info for the 0xE2 message.
@ao2
Copy link
Author

ao2 commented Jan 31, 2021

@JJJollyjim ping.

Would it make sense to have these changes merged?

Thanks, Antonio

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.

1 participant