Wireshark-dev: Re: [Wireshark-dev] bytes
Date: Tue, 8 Jan 2008 18:09:39 +0530
You may try the following

proto_tree_add_item(xxx_tree, hf_xxx_abc,parameter_tvb, param_offset, 9,

{ &hf_xxx_abc,
   {    "ABC",      "xxx.abc",      FT_BYTES,       BASE_DEC,
NULL,   0x0,    "",     HFILL }},

Hopefully the above will help you display the 9 bytes .

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of bijjou2000
Sent: Tuesday, January 08, 2008 5:58 PM
To: wireshark-dev
Subject: [Wireshark-dev] bytes

hi I want spend a 9 bytes address as a hex value (0x. ....) , I tried as
follows; proto_tree_add_bytes_format_value(lon_tree, hf_unicast, tvb,
offset,9,lon_unicast,"0xX",lon_unicast); { &hf_unicast, { "Unicast",
"lon.Unicast", FT_BYTES, BASE_HEX ,NULL, 0x0, "unicast", HFILL } }, i
don't know what kind of tvb_get_xxx funktion ,is usefull . they
unfortunately do I get an error. Do not know why! I would be grateful
for your help. bijjou

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.