Re: [Wireshark-dev] need help in proto_register_foo

2013-05-07 Thread Alexis La Goutte
You need to use FT_STRING with BASE_NONE Regards, On Tue, May 7, 2013 at 12:14 PM, Hardik Patel wrote: > Hi, > > I have small problem with > > proto_register_foo > { > static hf_register_info hf[] = > { &hf_type, { "type", "foo.type", *FT_UINT16, BASE_DEC*, NULL, 0x0, NULL, > HFILL

[Wireshark-dev] need help in proto_register_foo

2013-05-07 Thread Hardik Patel
Hi, I have small problem with proto_register_foo { static hf_register_info hf[] = { &hf_type, { "type", "foo.type", *FT_UINT16, BASE_DEC*, NULL, 0x0, NULL, HFILL }}, } Now i wanted to add *"string"* in case of "BASE_DEC" as my buffer data is representing string with 10 character.