Hi all,


I wrote two plugins which run on sua layer. The plugins are xxx and yyy and 
their subsystem no. are 91 and 92 respectively.



Now I registered the two protocols as



For XXX plugin:



static guint global_xxx_ssn = 90;



Void proto_reg_handoff_xxx(void)

{

                   static dissector_handle_t xxx_handle;

heur_dissector_add("sua", dissect_xxx,  proto_xxx);

xxx_handle = create_dissector_handle(dissect_xxx, proto_xxx);

dissector_add("sccp.ssn", global_xxx_ssn, xxx_handle);



}



For YYY plugin:



static guint global_yyy_ssn = 91;



Void proto_reg_handoff_yyy(void)

{

                   static dissector_handle_t yyy_handle;

heur_dissector_add("sua", dissect_yyy, proto_yyy);

yyy_handle = create_dissector_handle(dissect_yyy, proto_yyy);

dissector_add("sccp.ssn", global_yyy_ssn,  yyy_handle);



}



Now the problem is the data what ever comes above sua layer is dissected as yyy 
protocol.

The data which comes after yyy protocol is dissected as xxx protocol.

But both the plugins should run on sua layer and depending on subsystem no. 
they have to be differentiated.



Can any one please suggest me how to register the plugins properly so that then 
can be dissected properly on sua layer?



Thanks in advance,

Atdev.


Please do not print this email unless it is absolutely necessary. 

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
[email protected]
https://wireshark.org/mailman/listinfo/wireshark-dev

Reply via email to