[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wireshark-dev
Subject:    Re: [Wireshark-dev] Trying to add computed value
From:       Jaap Keuter <jaap.keuter () xs4all ! nl>
Date:       2006-11-27 12:25:13
Message-ID: 20061127132305.Y64207-100000 () xs3 ! xs4all ! nl
[Download RAW message or body]

Hi,

Did you use something like this:

my_item_value = 2 * tvb_get_ntohs(tvb, offset);
proto_tree_add_uint(my_tree, hf_my_item, tvb, offset, 2, my_item_value);

Thanx,
Jaap

On Mon, 27 Nov 2006 Andrew.Martin@generaldynamics.uk.com wrote:

> Hiya
>
> I'm tring to get a calculated value to be displayed instead of the value
> pulled out of the packet. However all I get is the value in the packet.
> Can somebody tell an idiot what I need to do please!
>
> Cheers
>
>

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@wireshark.org
http://www.wireshark.org/mailman/listinfo/wireshark-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic