Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] text file as input to wireshark

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Fri, 5 Jan 2007 17:41:31 +0100 (CET)
Hi,

Have a look at text2pcap for that.
Take an ASCII dump of SUA packet, replace stuff with your own, feed it
through text2pcap and load the result in Wireshark. Read the text2pcap man
page for the required text file format.

Thanx,
Jaap

On Fri, 5 Jan 2007 jaiswal.vikash@xxxxxxxxx wrote:

>
> Hi ,
>
> I've written a dissector for my own protocol .This is just to enhance my
> understanding of writing dissectors .
> I've completed coding and now I wish to test my dissector. But as it is
> an imaginary protocol , I cannot get the packets for it .
> I wish to test it by writing a text file and passing it as input to the
> wireshark.
>
> Can anyone suggest me how to write the text file for my protocol . Any
> sample text files would be welcome .
>
> My protocol runs over SUA layer and a simple packet would look like :
>         -----------------------------------------------------
>        |        Name : 0 = X , 1 = Y                |
>         -----------------------------------------------------
>        |        Id                                           |
>         -----------------------------------------------------
>        |        Class                                     |
>         -----------------------------------------------------
>        |        Roll                                        |
>         -----------------------------------------------------
>
>
> Regards ,
> Vikash
>
>
>
>
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>
> www.wipro.com