Hello,
I want to call a sub-dissector many times.
I know the total size of my data.
I do NOT know the size to give to the sub-dissector.
The sub-dissector will know (by itself) the size to dissect.
The corresponding scheme from the parent dissector point of view :
|-----------------------------------Packet data (total size is
known)--------------------------------|
|--Parent dissector--|--sub-dissector 1 (size is
unknown)--|...|--sub-dissector N (size is unknown)--|
The sub-dissector will be called by dissector_try_uint (or
call_dissector or eventually dissector_try_heuristic).
Question 1)
Is it possible to call dissector_try_uint (or ...) with more data
than needed by the sub-dissector ?
It seems not a problem.
Question 2)
How to know how many bytes have been dissected by the
sub-dissector ?
Regards,
Olivier
--
Wireshark Generic Dissectorhttp://wsgd.free.fr