views:

56

answers:

1

(Apologies: I uninstalled and reinstalled WinPcap and now I can see the extra interface! Suggestion found in Wireshark FAQ. I leave the original question below.)

I use WireShark to examine ethernet packet contents at the byte level (in/out of custom FPGA-based hardware). I have a USB-Ethernet adapter to add a second Ethernet port to my laptop. It was a cheap Chinese device bought on Ebay but now that I've found an appropriate driver, it works OK. However, I see that, on Windows, WinPcap/WireShark doesn't support Ethernet capture over USB.

While it would be nice if WireShark could be made to work on USB capture, I'm really looking for an alternative way to grab the raw ethernet bytes. I have some perl scripts set up that operate on the raw frames output from tshark, (Wireshark command line) and I could easily feed it from any stream of frames/bytes.

Is anyone doing something similar or is there a tidy way to output the raw bytes?

Sniffed raw USB bytes would be OK, but it would be nicer if someone has already programmed/scripted extracting the Ethernet frames. I'm using perl but any compiled app or python or C# or C++ or .. would be fine.

A: 

I don't have a Windows PC readily at hand to test, but as far as I can tell, there is no problem capturing Ethernet frames in Wireshark on Windows, from a USB-Ethernet adapter.

What you can't do, is capturing USB bus traffic, but that is not what you wanted, right?

To clarify, just select the USB-Ethernet device as you would any other, and you are set.

Amigable Clark Kant
The USB Ethernet device doesn't appear as an interface to select in Wireshark. tshark.exe -D reports only 2 interfaces: my "real" Ethernet connection and the wireless LAN, but that's it. ipconfig lists all 3.
afewscoops
Hm.. Too bad. :-/
Amigable Clark Kant