|
Hi, I'm new to Lua dissector and experimenting with Lua. I need some help understand how can a sub-protocol dissector return bytes consumed during its decoding to its caller dissector. Example:
|
|
Ideally, the sub-dissector would just return the number of consumed bytes, and you'd just check the return value, but A workaround is to declare a global variable, call
You can avoid globals in this particular case by using
Note the value from a Thanks a lot.. pinfo.private.rval solution worked..
(02 Jul '12, 10:29)
nrk1983
|
