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

Implement support for USBPcap link-type #5

Open
CooperWhitlow opened this issue Oct 16, 2015 · 4 comments
Open

Implement support for USBPcap link-type #5

CooperWhitlow opened this issue Oct 16, 2015 · 4 comments

Comments

@CooperWhitlow
Copy link

Hi! I've found that pcap files captured on windows causes a runtime error.

@wcooley
Copy link
Owner

wcooley commented Oct 16, 2015

How are you capturing USB pcap on Windows? Can you share a sample with me?

@CooperWhitlow
Copy link
Author

@wcooley
Copy link
Owner

wcooley commented Oct 21, 2015

I'm guessing that you captured with USBPcap or something that captures to that format? The link-type of your capture is "USBPCAP", 249, whereas this tool supports "USB_LINUX_MMAPPED", 220.

I naively tried to change the link-type using pcapfix but the formats are non-trivially different. It would be possible to create a new packet format dictionary to decode it, but not without a bit of work.

The USBPcap format is documented at http://desowin.org/usbpcap/captureformat.html.

@wcooley wcooley changed the title USBreplay does not playback all PCAP files Implement support for USBPcap link-type Oct 21, 2015
@CooperWhitlow
Copy link
Author

I see.

A new format dictionary is beyond my ability to do myself. Perhaps at least I could include a mention to this in the "caveats" section of the usbreplay readme and submit a pull request?

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

No branches or pull requests

2 participants