[Wireshark-dev] Data not getting formatted for custom columns added

2012-03-03 Thread ashish goel
Hi all,

I have defined some custom columns through preferences - Columns. and I
want the data of these columns to be formatted as strings not raw bytes.
I have used VALS() function in my dissector code while registering fields
and it is working fine in the packet details window but in the columns the
data is not formatted.

any suggestions?

-- 
Thanks,
Ashish
___
Sent via:Wireshark-dev mailing list wireshark-dev@wireshark.org
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] Data not getting formatted for custom columns added

2012-03-03 Thread Martin Kaiser
Thus wrote ashish goel (ashish.kumar.go...@gmail.com):

 I have defined some custom columns through preferences - Columns. and I
 want the data of these columns to be formatted as strings not raw bytes.
 I have used VALS() function in my dissector code while registering fields
 and it is working fine in the packet details window but in the columns the
 data is not formatted.

have a look at packet-dvbci.c, search for val_to_str_const() and
col_add_str()

is this what you need?
___
Sent via:Wireshark-dev mailing list wireshark-dev@wireshark.org
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] Data not getting formatted for custom columns added

2012-03-03 Thread ashish goel
I guess it isn't. Because I guess I cant use col_add_str() function for my
custom columns. or Can I ??

On Sat, Mar 3, 2012 at 10:16 PM, Martin Kaiser li...@kaiser.cx wrote:

 Thus wrote ashish goel (ashish.kumar.go...@gmail.com):

  I have defined some custom columns through preferences - Columns. and I
  want the data of these columns to be formatted as strings not raw bytes.
  I have used VALS() function in my dissector code while registering fields
  and it is working fine in the packet details window but in the columns
 the
  data is not formatted.

 have a look at packet-dvbci.c, search for val_to_str_const() and
 col_add_str()

 is this what you need?
 ___
 Sent via:Wireshark-dev mailing list wireshark-dev@wireshark.org
 Archives:http://www.wireshark.org/lists/wireshark-dev
 Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe




-- 
Thanks,
Ashish
___
Sent via:Wireshark-dev mailing list wireshark-dev@wireshark.org
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe