Wireshark-dev: Re: [Wireshark-dev] What is BASE_HEX_DEC
From: "Straszheim Daryl-P26342" <[email protected]>
Date: Fri, 17 Dec 2010 17:41:35 -0500
Are there description comments for the enum values in the header file
where they are defined?


BASE_DEC,     /* displayed as dec */
BASE_HEX,     /* displayed as hex */
BASE_DEC_HEX, /* displayed as dec(hex) */
BASE_HEX_DEC, /* displayed as hex(dec) */

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Guy Harris
Sent: Friday, December 17, 2010 1:41 AM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] What is BASE_HEX_DEC

On Dec 17, 2010, at 12:37 AM, Hoang Thang wrote:

> I am seeing the source code of Wireshark and confuse what BASE_DEC_HEX
and BASE_HEX_DEC are.
> Why don't we use only BASE_HEX or BASE_DEC ?

Because, for whatever reason, some people want the value of a numeric
field displayed in both hexadecimal and decimal.

> And some functions such as: proto_tree_add_item, proto_tree_add_text,
... that I could not find where it declare, define,... ?

Declared in epan/proto.h, defined in epan/proto.c.

> Is it in DLL file ?

They're in the libwireshark library.  By default, libwireshark is built
as a Windows DLL for Windows, and as a UN*X shared library (.so, .sl,
.dylib, whatever your particular UN*X calls it) on UN*X.
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:wires[email protected]?subject=unsubscribe