tcpdump mailing list archives

Re: Request for a DLT code for IPMB packet


From: "Toeung, Chanthy" <chanthy.toeung () ca kontron com>
Date: Wed, 15 Aug 2007 11:12:28 -0400

Does the USB captured mode work in Wireshark? I mean when i list all the interface, it doesn't detect any USB device 
that connected to my pc. SO what is the version of Lippcap that support this USB device?

Oh i used to try to create a pcap format too, but it doesnt work, and i met too many bugs, that is the reason that i 
decided to create hexdump format.

Thanks,

Chanthy

-----Original Message-----
From: tcpdump-workers-owner () lists tcpdump org
[mailto:tcpdump-workers-owner () lists tcpdump org]On Behalf Of Guy Harris
Sent: Tuesday, August 14, 2007 5:01 PM
To: tcpdump-workers () lists tcpdump org
Subject: Re: [tcpdump-workers] Request for a DLT code for IPMB packet



On Aug 13, 2007, at 11:45 AM, Toeung, Chanthy wrote:

So presumably the first byte of the packet data will be the slave  
address, followed by the netFn and LUN, followed by the checksum,  
etc.?

yes. It is correct.

OK, DLT_IPMB has been assigned the value 199.

Capture type, or DLT_ type?

I need DLT_ type. I already develop the code for the package by  
using the DLT_USR14 for this packet.
Actually, i know that pcap*.c doesn't support I2C. So i have also  
build a "Capture engine" to catch raw data from I2C, then save it in  
a file under  hexdump format.
After that i will use text2pcap to transfrom this file into pcap  
file format, then it can be open with Wireshark.

Actually, it might be easier just to save it in libpcap format, using,  
for example, the pcap_dump routines in libpcap.

You might also be able to put that capture engine into libpcap, so  
Wireshark, for example, could do the capturing directly.

See, for example, the Linux Bluetooth and USB capture devices for
examples.  Unfortunately, there's no "how to add a new type of  
capture
device" documentation - and the interface for that will probably  
change
at some point.

where can i find the example of USB capture devices ?

In the "current tar" version of libpcap, see "pcap-usb-linux.c" and  
"pcap-usb-linux.h".
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: