Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: Re: [Wireshark-users] New dissector: variable length of a fields

From: Dmitrij K <kdiman@xxxxxxx>
Date: Sun, 16 Feb 2014 06:17:34 +0000
Guy Harris wrote:
> What error do you get?

Thank you for the answer !

I get next:

> MYPROTO Ptotocol
Field magic1: 0x1
Field flags:     0x0
Field sz:          0
Field e_flags: 0x0
Field magic2: 0x2
Binary datas range from 0-*:  <MISSING>
------- Here must be the 'Field magic3: 0x3' but it is not !!! --------
> Dissector bug, protocol MYPROTO: proto.c:3566: failed assertion "DISSECTOR_ASSERT_NOT_REACHED"


PS: needs for to allow for 'Binary datas range from 0-*' to be 0 length (by the field sz),
and magic3 must be shown ...

--
regards