Parse usbmon tcpdump logs directly
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 8 Mar 2011 15:59:53 +0000 (12:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 8 Mar 2011 16:26:06 +0000 (13:26 -0300)
commitb0c87e2277dddda72321e39b3bc568e9005185f1
tree527c1ac60e5674de0982bcec8bf388221d720786
parent1af1cdf4367bd1683a29f574d6547a367e8a45dc
Parse usbmon tcpdump logs directly

Instead of relying on wireshark parser, just read the tcpdump
logs directly, and use it to produce a parseable output.

I started to use my Beagleboard as an USB sniffer using the
code at:
http://beagleboard-usbsniffer.blogspot.com/

However, as I want to use the parser scripts for USB that I wrote,
I decided to write a parser that outputs data on a similar format.

On a first trial, I tried to parse the wireshark dump, but this
didn't work fine. So, I rewrote my parser to get the tcpdump
directly, using the cpan Net::TcpDumpLog.

There are some adjustments probably needed, but this version
already produces something usefull.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
contrib/parse_tcpdump_log.pl [new file with mode: 0755]
contrib/wireshark_parser.pl [deleted file]