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

I was able to retrieve my packet data as an unsigned char* with

gCharArray = tvb_get_string(tvb, 0, length);

but I have no idea how to determine what 'length' SHOULD be. My message type does not include any size information unfortunately. I want to grab the data from position 0 to the end of the data. How can I accomplish this?

Thank you for your time,
Brandon

asked 26 Jul '11, 12:28

officialhopsof's gravatar image

officialhopsof
318812
accept rate: 100%


I am going to answer my own question,

length = tvb_length(tvb);

Sorry about that!
Brandon

permanent link

answered 26 Jul '11, 12:47

officialhopsof's gravatar image

officialhopsof
318812
accept rate: 100%

Your answer
toggle preview

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:

×248
×29
×6
×1
×1

question asked: 26 Jul '11, 12:28

question was seen: 5,130 times

last updated: 26 Jul '11, 12:47

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