Hi ,


I have my test dissector , running over SUA , in TLV ( tag length value)
format. In one of the messages, I want to add an existing RANAP ( asn.1
format) message along with the other parameters of my protocol. The
coding of one of the messages in which I have called RANAP message goes
like this:



dissect_message(tvbuff_t *tvb,int offset ,proto_tree
*xxx_tree,packet_info *pinfo)



{



asn1_ctx_t actx;



asn1_ctx_init(&actx, ASN1_ENC_PER, TRUE, pinfo);

offset = dissect_ranap_ResetResource(tvb, offset, &actx, macic_tree,
hf_macic_ranap_resetResource);



proto_tree_add_item(xxx_tree, hf_xxx_clust,tvb, offset, en, FALSE);

offset = offset + len;



}



I have seen this way of implementation in MEGACO , trying to call a h245
message. But the RANAP message is not dissected properly and also I am
not able to get the remaining parameters in the message. Could somebody
confirm whether it is the right way to call a message from a different
dissector.



BR,

Tarani




The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@wireshark.org
http://www.wireshark.org/mailman/listinfo/wireshark-dev

Reply via email to