This is our old Q&A Site. Please post any new questions and answers at
  1. I am trying to use for a dissector that has:

proto_tree_add_text(tl_tree, tvb, offset, -1, "Data (%d bytes)", tvb_reported_length_remaining(tvb, offset));

generate gave me:

1;1;tl_tree;hf_tl_data_(%d_bytes)";tvb;offset;-1;encoding;Data (%d bytes)";fieldtype;tl.data_(%d_bytes)";BASE_DEC;NULL;0x0

however fixall fails:

C:\Development\wireshark\tools> ../epan/dissectors /packet-tl.c --action=fix-all --encoding=ENC_BIG_ENDIAN

1: Encoding value 'encoding' unknown!

1: Field type 'fieldtype' unknown! Aborting conversion.

Should the replacement be like: proto_tree_add_item(tl_tree, hf_tl_data, tvb, offset, -1, ENC_BIG_ENDIAN);

{ "Data", "",  
"Data", HFILL } }

I am not sure what the FT value should be here.

2.When debugging using printf, how to I get the console when using windows interface. In 2.x wireshark version I am not seeing the "open console" option.


asked 16 Mar '17, 21:27

erin's gravatar image

accept rate: 0%

Under advanced , found the gui.console_open and updated it to Always. However console level log is set to 28 by default. Will prints show up on console with this logging level?

(16 Mar '17, 22:06) erin
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 16 Mar '17, 21:27

question was seen: 715 times

last updated: 16 Mar '17, 22:06

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