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

Date: Fri, 5 Jan 2007 16:34:10 +0530
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