Wireshark-dev: Re: [Wireshark-dev] NBAP: dissection of Private Messages
From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Sun, 2 Mar 2008 18:36:02 +0100
Hi, Well are you using local Id for your private IE:s? I guess you need to add code to the CHOICE to know whether its a global or local code received. Then in dissect_PrivateIEFieldValue bransch on that to either call a OID subdissector or the local PrivateIE_ID Dissector this can be done in the same way as for the "normal" ie dissector Add after: nbap_ies_dissector_table = register_dissector_table("nbap.ies", "NBAP-PROTOCOL-IES", FT_UINT32, BASE_DEC); nbap_private_ies_dissector_table = register_dissector_table("nbap.private.ies", "NBAP-PRIVARE-PROTOCOL-IES", FT_UINT32, BASE_DEC); Please send us a diff of the code you added as this can be added to the standard dissector. (Registration to the table can be kept private). Regards Anders ________________________________________ Från: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] För praveen.jha@xxxxxxxxxxx Skickat: den 29 februari 2008 16:36 Till: Developer support list for Wireshark Ämne: Re: [Wireshark-dev] NBAP: dissection of Private Messages Hi, I tried to add one sub-dissector table for private IEs, but the problem is that for private IEs the Protocol-IE-Id is a choice (having a local ID and a global ID) instead of string or integer. So how to go about registering a new sub-dissector table?? static int dissect_PrivateIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { return (dissector_try_port(nbap_pies_dissector_table, PrivateIE_ID, tvb, pinfo, tree)) ? tvb_length(tvb) : 0; } can we use something like PrivateIE_ID.local ?? Thanks and Regards, Praveen "Anders Broman" <anders.broman@xxxxxxxxxxxx> "Anders Broman" <anders.broman@xxxxxxxxxxxx> Sent by: wireshark-dev-bounces@xxxxxxxxxxxxx 02/26/2008 07:20 PM Please respond to Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx> To "Developer support list for Wireshark" <wireshark-dev@xxxxxxxxxxxxx> cc Subject Re: [Wireshark-dev] NBAP: dissection of Private Messages Hi, There may not be a dissector table for private IE:s which in that case needs to be added. How much of the message is decoded presently? Regards Anders ________________________________ Från: wireshark-dev-bounces@xxxxxxxxxxxxx genom praveen.jha@xxxxxxxxxxx Skickat: ti 2008-02-26 19:54 Till: Developer support list for Wireshark Ämne: Re: [Wireshark-dev] NBAP: dissection of Private Messages Hi, "PrivateMessage" PDU is already defined in the NBAP spec, but it doesn't have any IEs currently. I am adding IEs to it (PrivateMessage-IEs). PrivateMessage-IEs NBAP-PRIVATE-IES ::= { { ID local:id-type-1 CRITICALITY criticality TYPE Sample-Message-Type PRESENCE optional} , ... } Regards Inactive hide details for "Anders Broman" <anders.broman@xxxxxxxxxxxx><https://mail.eemea.ericsson.se/exchange/anders. broman/Drafts/graycol.gif> "Anders Broman" <anders.broman@xxxxxxxxxxxx> "Anders Broman" <anders.broman@xxxxxxxxxxxx> Sent by: wireshark-dev-bounces@xxxxxxxxxxxxx 02/26/2008 06:09 PM Please respond to Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx> <https://mail.eemea.ericsson.se/exchange/anders.broman/Drafts/ecblank.gif> To <https://mail.eemea.ericsson.se/exchange/anders.broman/Drafts/ecblank.gif> "Developer support list for Wireshark" <wireshark-dev@xxxxxxxxxxxxx> <https://mail.eemea.ericsson.se/exchange/anders.broman/Drafts/ecblank.gif> cc <https://mail.eemea.ericsson.se/exchange/anders.broman/Drafts/ecblank.gif> <https://mail.eemea.ericsson.se/exchange/anders.broman/Drafts/ecblank.gif> Subject <https://mail.eemea.ericsson.se/exchange/anders.broman/Drafts/ecblank.gif> Re: [Wireshark-dev] NBAP: dissection of Private Messages <https://mail.eemea.ericsson.se/exchange/anders.broman/Drafts/ecblank.gif> <https://mail.eemea.ericsson.se/exchange/anders.broman/Drafts/ecblank.gif> Hi, Are you trying to add private PDU:s or Privare IE:s to a existing PDU? Can you post a .pcap file of the message? Regards Anders ________________________________ From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of praveen.jha@xxxxxxxxxxx Sent: den 26 februari 2008 17:25 To: wireshark-dev@xxxxxxxxxxxxx Subject: [Wireshark-dev] NBAP: dissection of Private Messages Hi, I am trying to implement the dissection of NBAP containing private message(s). For that I am including my private message in asn1 format. the message format is as follows : -- **************************************************************************** ************************************************ -- Private PDUs -- **************************************************************************** ************************************************ PrivateMessage-IEs NBAP-PRIVATE-IES ::= { { ID local:id-type-1 CRITICALITY criticality TYPE Sample-Message-Type PRESENCE optional} | { ID local:id-type-2 CRITICALITY criticality TYPE Sample-Message-Type PRESENCE optional} , ... } Sample-Message-Type ::= CHOICE { type-a value-a , type-b value-b } the above definition, I have added in NBAP-PDU-Containers.asn file. --************************************************************************** ***************************************************** --Private Constants --************************************************************************** ***************************************************** id-type-1 6000 id-type-2 7000 --************************************************************************** ***************************************************** Added the constants in NBAP-Constants.asn file. Apart from this I have also modified the CNF file, In REGISTER_NEW added type-1, type-2 as IEs and, then type-a and type-b as IE-Extensions. But the dissector is not able to dissect the Sample-Message-Type. Any suggestions?? Regards, Praveen Kumar Jha *********************** Aricent-Unclassified *********************** "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." _______________________________________________ Wireshark-dev mailing list Wireshark-dev@xxxxxxxxxxxxx http://www.wireshark.org/mailman/listinfo/wireshark-dev *********************** Aricent-Unclassified *********************** "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." [attachment "winmail.dat" deleted by Praveen Kumar Jha/NokiaDDF] _______________________________________________ Wireshark-dev mailing list Wireshark-dev@xxxxxxxxxxxxx http://www.wireshark.org/mailman/listinfo/wireshark-dev *********************** Aricent-Unclassified *********************** "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1301 - Release Date: 2008-02-27 08:35
- Prev by Date: Re: [Wireshark-dev] How can I decode ASN.1 as Wireshark does?
- Next by Date: [Wireshark-dev] 0.99.8 col_append_str fails
- Previous by thread: Re: [Wireshark-dev] detail of call_dissector() function
- Next by thread: [Wireshark-dev] 0.99.8 col_append_str fails
- Index(es):