Wireshark-dev: Re: [Wireshark-dev] (no subject)
From: ankit <ankitha@xxxxxxx>
Date: Thu, 22 Mar 2012 13:26:20 +0530
Hi
Thank you fro your suggestion. I have solved the problem. The problem
was in the FIELDDISPLAY part of the definition of &hf_event_link_detect.
It is defined as 1 but is to be put as 32 ie the size of &hf_event_list.
Thanks & Regards
Ankith
On Wed, 2012-03-21 at 19:29 +0100, Alexis La Goutte wrote:
> Hi Ankitha,
>
> What the value of event_fields ?
> Do you have look other dissector use proto_tree_add_bitmask ?
> (packet-gsm_sim.c or packet-ieee80211.c )
>
> Regards,
>
> On Wed, Mar 21, 2012 at 4:50 PM, <ankitha@xxxxxxx> wrote:
> Hi
> I am currently working on developing of MIH protocol plugin.
> I am
> using proto_tree_add_bitmask and getting the error in the
> packets as -
> 17:55:33 Warn Dissector bug, protocol MIH, in packet
> 8:
> proto.c:7166: failed assertion "len * 8 == hf->display"
>
> What may be the error?
> The following is the definition of the datatype where the
> error occurs-
>
> {
> &hf_event_link_detect,
> {
> "MIH LINK Detected",
> "mih.event_list.link_detect",
> FT_BOOLEAN,
> 1,
> NULL,
> LINK_DETECT_MASK,
> NULL, HFILL
> }
> }
>
> and the call to the function is like this-
>
> evt_list_tree = proto_item_add_subtree(tlv_tree,
> ett_event_bitmap);
> proto_tree_add_bitmask(evt_list_tree, tvb, offset,
> hf_event_list,
> ett_event_bitmap, event_fields, ENC_BIG_ENDIAN);
>
> -->hf_event_list is defined this way-
> {
> &hf_event_list,
> {
> "List of Events",
> "mih.event_list",
> FT_UINT32,
> BASE_HEX,
> NULL,
> 0x0,
> NULL, HFILL
> }
> },
>
> Let me know if any extra info is required.
>
> NB:I am sorry for duplicating the mail, but the problem is a
> little
> urgent.
>
> Regards
> Ankith
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> ___________________________________________________________________________
> Sent via: Wireshark-dev mailing list
> <wireshark-dev@xxxxxxxxxxxxx>
> Archives: http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe:
> https://wireshark.org/mailman/options/wireshark-dev
>
> mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> ___________________________________________________________________________
> Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives: http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
> mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
- References:
- [Wireshark-dev] (no subject)
- From: ankitha
- Re: [Wireshark-dev] (no subject)
- From: Alexis La Goutte
- [Wireshark-dev] (no subject)
- Prev by Date: Re: [Wireshark-dev] Mu Dynamics, Inc. Security Advisories MU-201202-01 and MU-201202-02 for GnuTLS and Libtasn1
- Next by Date: Re: [Wireshark-dev] [Wireshark-commits] rev 41728: /trunk/ /trunk/: configure.in
- Previous by thread: Re: [Wireshark-dev] (no subject)
- Next by thread: [Wireshark-dev] (no subject)
- Index(es):