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

Wireshark-dev: [Wireshark-dev] range_string problem

Date: Thu, 25 Jan 2007 10:06:00 +0530
Hi ,
 
I've tried to use range_string in my dissector in the following way , but it's giving an error .
 
{ &hf_xyz_vlr_cfdata_ncrt,
   {    "No reply condition time",  "xyz.vlr_cfdata_ncrt",    FT_UINT8,       BASE_DEC,       RVALS(vlr_cfdata_nrct_rvals),   0x0,    "",     HFILL }},
 
 
static const range_string vlr_cfdata_nrct_rvals[] = {
{0, 4, "Not used"},
{5, 30, "Timer value in seconds"},
{31, 254, "Not used"},
{0, 0, NULL}};
 
 
error: syntax error before "vlr_cfdata_nrct_rvals
 
I've tried with RVALS(vlr_cfdata_nrct_rvals) and RS(vlr_cfdata_nrct_rvals) , but both gave the error .
Is there any header we need to include for using range_string .
 
Suggestions to this shall be appreciated .
 
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