Ethereal-dev: [Ethereal-dev] Help needed....

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: nimalan s <nimsiva@xxxxxxxxx>
Date: Thu, 14 Apr 2005 04:48:36 -0700 (PDT)
Hi,
I am creating a customised protocol dissector on top
of UDP.I have some basic doubts,in my protocol there
is a particular field say parametertype which contains
about seven types.The next field to it is parameter
length which is of variable lengths(can be from 2 to
254 bytes) follwed by data field of length specified
by parameter length.Again after this I have the same
set repeated from param type,length and data untill
the end of the packet.(packet size not known) 
1.could any one tell me  how to use byte accessors to
get data of these variable lengths.ie..,(which of the
tvb_get_*** to use).
2.How to return back  to next param type routine,
again after dissecting param data.
Thanking you in advance,
Nimalan.

     


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/