Hi,
It vas ANSI TCAP right?
How about this code from packet-ansi_map-template.c
static void range_delete_callback(guint32 ssn)
{
if (ssn) {
delete_ansi_tcap_subdissector(ssn , ansi_map_handle);
add_ansi_tcap_subdissector(ssn , ansi_map_handle);
}
}
static void range_add_callback(guint32 ssn)
{
if (ssn) {
add_ansi_tcap_subdissector(ssn , ansi_map_handle);
}
}
void
proto_reg_handoff_ansi_map(void)
{
static int ansi_map_prefs_initialized = FALSE;
data_handle = find_dissector("data");
if(!ansi_map_prefs_initialized)
{
ansi_map_prefs_initialized = TRUE;
ansi_map_handle = create_dissector_handle(dissect_ansi_map,
proto_ansi_map);
}
else
{
range_foreach(ssn_range, range_delete_callback);
}
g_free(ssn_range);
ssn_range = range_copy(global_ssn_range);
range_foreach(ssn_range, range_add_callback);
}
void proto_register_ansi_map(void) {
:
ansi_map_module = prefs_register_protocol(proto_ansi_map,
proto_reg_handoff_ansi_map);
prefs_register_range_preference(ansi_map_module, "map.ssn", "ANSI MAP
SSNs",
"ANSI MAP SSNs to decode as ANSI MAP",
&global_ssn_range, MAX_SSN);
:
Regards
Anders
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: den 28 december 2007 12:44
To: [email protected]
Subject: [Wireshark-dev] dissect_add error for tcap.ssn
Hello ,
I am trying to include a dissector using my asn.1 format for a test
protocol which runs over TCAP layer.
The test.asn file was written and compiled along with
packet-test-template.c file in the ..wireshark/asn1/test directory .
But I am facing a poblem , an error is displayed with respect to
"dissector_add" .
Here is how the "dissector_add" portion of my code looke like :
void proto_reg_handoff_tsrp(void){
static int test_prefs_initialized = FALSE;
if (!test_prefs_initialized) {
test_prefs_initialized = TRUE;
test_handle = create_dissector_handle(dissect_test, proto_test);}
else
dissector_delete("tcap.ssn", TCAP_SSN_TEST, test_handle);
dissector_add("tcap.ssn", TCAP_SSN_TEST, test_handle);
}
Request you to please help me identify the mistake.
Regards ,
Atdev
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]
http://www.wireshark.org/mailman/listinfo/wireshark-dev