Re: [Wireshark-dev] Correct way to add bytes to tree

2016-12-29 Thread Juan Jose Martin Carrascosa
Hi all, Thanks for the prompt answers. I have ended up adding the value as a sub-element. So I don't need to do what I specified above anymore. Patch here! https://code.wireshark.org/review/#/c/19458/ Thanks, Juanjo Martin On Wed, Dec 28, 2016 at 8:46 PM, Alexis La Goutte wrote: > You can als

Re: [Wireshark-dev] Correct way to add bytes to tree

2016-12-28 Thread Alexis La Goutte
You can also look proto_item_append_text On Wed, Dec 28, 2016 at 7:54 PM, Jaap Keuter wrote: > Hi, > > Sharing part of the relevant code would help answer your question, eg. the > proto_add_ calls tested. > > Thanks, > Jaap > > On 28 Dec 2016, at 19:09, Juan Jose Martin Carrascosa > wrote: > >

Re: [Wireshark-dev] Correct way to add bytes to tree

2016-12-28 Thread Jaap Keuter
Hi, Sharing part of the relevant code would help answer your question, eg. the proto_add_ calls tested. Thanks, Jaap > On 28 Dec 2016, at 19:09, Juan Jose Martin Carrascosa wrote: > > Hi all, > > I have what I need to add bytes to a tree using proto_tree_add_item or > proto_tree_add_bytes.

[Wireshark-dev] Correct way to add bytes to tree

2016-12-28 Thread Juan Jose Martin Carrascosa
Hi all, I have what I need to add bytes to a tree using proto_tree_add_item or proto_tree_add_bytes. The problem is that I want to customize the name of the proto_item adding a couple of parameters that I know from before. Something like this: given id = 5 and length = 10, tvb, offset and length.