Hi,
I don't think you can get the info without find it in the tvbuff.
In my opinion, 2 possibilities:
- if the data is always at the same position, set an offset :
tvb_get_*(tvb(, ), STANDARD_OFFSET(, length));
- when you populate, update the COLL_INFO :
if (check_col(pinfo->cinfo, COL_INFO))
col_append_fstr(pinfo->cinfo, COL_INFO, " data: %s", data);
___________________
Yann BARILLY
Alcatel-Lucent Orvault
Internal : 2 105 1224
External : + 33 2 51 78 12 24
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Thursday, February 12, 2009 7:30 PM
To: [email protected]
Subject: [Wireshark-dev] Problems to fill COL_INFO in a new dissector
Hello,
Well here is the full story.
I managed to code a new dissector from its ASN.1 description (Cisco
CRSPv3).
Everything is working except that I want to have some informations
showed in the column "Info".
At this time I can parse the tvb to match the info I need, but in this
case the dissector does the same work 2 times (one time to get the info
I need in the "Info" column and the other time with the dissector
generated code to populate the tree).
So, is there a way to get the information dissected in the packet
without parsing and doing the work of the dissector itself ? (NB: The
code of the dissector is generated from the ASN.1 file)
Regards,
------------------------------------------
Xavier OURCIERE.
France Telecom R&D
------------------------------------------
________________________________________________________________________
___
Sent via: Wireshark-dev mailing list <[email protected]>
Archives: http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:[email protected]?subject=unsubscribe
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <[email protected]>
Archives: http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:[email protected]?subject=unsubscribe