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

Hi,

Iam developing a dissector

i have used value string

          static const value_string fwd_type_vals[]={
           {0x00,    "undefined" },
           { 0x01,    " Info" },
            { 0, NULL }};

       and 
         { &hf_type,
    { "Com Type ", "com_type",FT_UINT8, BASE_HEX, VALS(fwd_type_vals), 0x80, NULL, HFILL }
    },

Iam using Bitmask 0x80 here and when i use to call this i get the output as

               1... .... = com Type : 0x01 (info)

How can i format and display only com Type : 0x01 (info) how to trim/remove this

              1... ....=

Please help!

Thanks!

asked 04 Jul '14, 03:23

umar's gravatar image

umar
26222427
accept rate: 0%

closed 04 Jul '14, 03:47

grahamb's gravatar image

grahamb ♦
19.8k330206

This seems to be the same as your other questions:

Asking the same question multiple times isn't helpful for other users.

(04 Jul '14, 03:47) grahamb ♦

The question has been closed for the following reason "Duplicate Question" by grahamb 04 Jul '14, 03:47

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:

×24
×7

question asked: 04 Jul '14, 03:23

question was seen: 891 times

last updated: 04 Jul '14, 03:47

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