This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Generate pcap file for foo dissector protocol

0

Hey, Where can I get a foo.pcap file to test with the dissector? I couldn't find an example file in the Developer Guide, if there isn't one how can I generate a pcap file?

I tried serializing a struct conforming to the foo protocol in C++ but wireshark won't open it.

Any ideas?

asked 20 Nov '13, 03:52

Lews%20Therin's gravatar image

Lews Therin
11447
accept rate: 100%


2 Answers:

1

You need to write a file in pcap or pcap-ng format for Wireshark to be able to open it. You can find descriptions of the file formats on the Libpcap File Format and PcapNg wiki pages. Alternatively you can play with text2pcap if you don't have a trace of a proper message exchange for your protocol.

answered 20 Nov '13, 05:36

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%

edited 20 Nov '13, 07:33

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142

0

answered 24 Feb '15, 22:36

Mojo0809's gravatar image

Mojo0809
62
accept rate: 0%