[prev in list] [next in list] [prev in thread] [next in thread]
List: wireshark-dev
Subject: Re: [Wireshark-dev] Question for how to show the value of Length
From: "li yang" <bitliyang () gmail ! com>
Date: 2007-04-30 2:21:34
Message-ID: fd995d3c0704291921m6a3d8630rb777a15cf5d70e32 () mail ! gmail ! com
[Download RAW message or body]
Thanks for your help
I fixed the problem!!
By the way, how could I declare two fields if they are stored in 1 Byte ?
eg:
| Flag | MsgCount |
1bit 7 bits
On 28/04/07, Guy Harris <guy@alum.mit.edu> wrote:
> Kukosa, Tomas wrote:
>
> > the last parameter of proto_tree_add_item() function /which you probably
> > use to add field into the tree/ indicates if ineger field is little or
> > big endian. Fot little endian (your case) it has to be TRUE.
>
> Or use proto_tree_add_uint() and the value fetched with tvb_get_letohs().
>
> > You should use e.g. FT_BYTES for your data field, it has variable
> > length.
>
> ...using the length fetched with tvb_get_letohs().
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@wireshark.org
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>
--
Best Regards
Li Yang
13511066153
_______________________________________________
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