Re: [Wireshark-dev] How can I register a link layer protocol?

2012-03-05 Thread ashish goel
n dissector_add_uint(), am I right? If so, why >>> isn't working? should I change something else in pcap-common.c or wtap.c or >>> wtap.h? >>> >>> >>> Armando Vázquez Ramírez >>> >>> >>> On Sat, Mar 3, 2012 at 6:27 AM, a

Re: [Wireshark-dev] How can I register a link layer protocol?

2012-03-03 Thread ashish goel
e function dissector_add_uint(), am I right? If so, why isn't > working? should I change something else in pcap-common.c or wtap.c or > wtap.h? > > > Armando Vázquez Ramírez > > > > On Sat, Mar 3, 2012 at 6:27 AM, ashish goel > wrote: > >> Hi Armando

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 wrote: > Thus wrote ashish goel (ashish.kumar.go...@gmail.com): > > > I have defined some custom columns through preferences

[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

Re: [Wireshark-dev] How can I register a link layer protocol?

2012-03-03 Thread ashish goel
Hi Armando, The is a way you can do it through wireshark GUI. Go to preferences -> protocols -> DLT_User. Here click on edit and add your protocol on any of the User DLTs(147 - 162). But make sure that that the pcap file you are using must have defined the same DLT value in its global header. Hop