This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hi,

Iam trying for custom dissector bit wise operation octet by octet.my payload may contain max of 255 octets.

while display my tree

i get the value as

    [-] parent tree

            [-] subtree

                 ..1. .... = id_present : TRUE (0x01)
                 ...0 11.. = length     : TRUE (0x01)

        { &hf_length,
           { "Length Present   ", "Length_present.mine",FT_UINT8, BASE_HEX, VALS(length_vals), 0x40, NULL, HFILL }
        },

i have 2 questions

How to Hide

            ..1. .... =

and only show

            id_present : TRUE (0x01)

I have tried use a value_string but its only taking 0x00 and 0x01. Anything wrong here? Is there any method doing it?

and next question is instead of

               VALS(length_vals)

can i use direct values that can be displayed? anyother method ?? my data is c9 that is 1100 10

asked 03 Jun '14, 02:00

umar's gravatar image

umar
26222427
accept rate: 0%

closed 03 Jun '14, 02:11

grahamb's gravatar image

grahamb ♦
19.8k330206

Please don't raise a new question identical to one you raised earlier. If no-one has responded to your earlier question then it may not be clear what you are asking. Try to add clarifying comments if possible.

(03 Jun '14, 02:12) grahamb ♦

The question has been closed for the following reason "Duplicate of http://ask.wireshark.org/questions/33229/dissector-tree-hide-item" by grahamb 03 Jun '14, 02:11

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×63
×24
×23

question asked: 03 Jun '14, 02:00

question was seen: 1,112 times

last updated: 03 Jun '14, 02:12

p​o​w​e​r​e​d by O​S​Q​A