Wireshark mailing list archives
Re: Modifying custom giop dissector
From: mmann78 () netscape net
Date: Wed, 27 Nov 2013 11:20:44 -0500 (EST)
If your type is FT_INT64 you use proto_tree_add_int64[_format_value] If your type is FT_UINT64 you use proto_tree_add_uint64[_format_value] Same is true for 32-bit values- signed and unsigned types have different APIs. -----Original Message----- From: andy.ling <andy.ling () quantel com> To: Developer support list for Wireshark <wireshark-dev () wireshark org> Sent: Wed, Nov 27, 2013 11:12 am Subject: Re: [Wireshark-dev] Modifying custom giop dissector
So are you generating the dissector and then manually modifying it with your "timecodeString" function?Yes. If there is a better way I'm all ears. Similarly, some of the INTs are better displayed as hex. I can modify the BASE_DEC to say BASE_HEX, but if there is a better way it would be nice to know.
Is this supposed to work for 64 bit numbers? I have an entry that looks like {&hf_Quentin_RushIdent_first, {"RushIdent_first","giop-q_quentin.RushIdent.first",FT_INT64,BASE_DEC,NULL,0x0,NULL,HFILL}}, If I change it to FT_UINT64 & BASE_HEX I get an error in the dissector Message: proto.c:3258: failed assertion "hfinfo->type == FT_INT64" Making a similar change to variables that are FT_INT32 seems to work as expected. Thanks for any help Andy Ling ___________________________________________________________________________ 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-request () wireshark org?subject=unsubscribe
___________________________________________________________________________ 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-request () wireshark org?subject=unsubscribe
Current thread:
- Modifying custom giop dissector andy . ling (Nov 27)
- Re: Modifying custom giop dissector mmann78 (Nov 27)
- Re: Modifying custom giop dissector andy . ling (Nov 27)
- Re: Modifying custom giop dissector andy . ling (Nov 27)
- Re: Modifying custom giop dissector mmann78 (Nov 27)
- Re: Modifying custom giop dissector andy . ling (Nov 27)
- Re: Modifying custom giop dissector andy . ling (Nov 27)
- Re: Modifying custom giop dissector mmann78 (Nov 27)
- <Possible follow-ups>
- Re: Modifying custom giop dissector mmann78 (Nov 27)
- Re: Modifying custom giop dissector andy . ling (Nov 27)
- Re: Modifying custom giop dissector Guy Harris (Nov 28)