Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

tvbrange:raw() returns more bytes then expected

I have this lua dissector using:

s = buffer(0, len):raw()

But the result is that s contains all data in buffer, i.e. looks like to ignore the len parameter.

When I modify this to:

s = buffer(0, len);tvb():raw() it works.

Can this be explained or am I doing something wrong?

tvbrange:raw() returns more bytes then expected

I have this lua dissector using:

s = buffer(0, len):raw()

But the result is that s contains all data in buffer, i.e. looks like to ignore the len parameter.

When I modify this to:

s = buffer(0, len);tvb():raw() len):tvb():raw() it works.

Can this be explained or am I doing something wrong?

tvbrange:raw() returns more bytes then expected

I have this lua dissector using:

s = buffer(0, buffer(1, len):raw()

But the result is that s contains all data in buffer, i.e. looks like to ignore the len parameter.

When I modify this to:

s = buffer(0, buffer(1, len):tvb():raw() it works.

Can this be explained or am I doing something wrong?