diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2005-12-17 16:55:45 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2005-12-17 16:55:45 +0000 |
commit | bc84ba5de6a92de42024d4c25189d57328926c7f (patch) | |
tree | f3d2e4543a34ce43292846b7780e1bbb6c5563d0 /epan/dissectors/packet-inap.c | |
parent | cee67cb78b33e24d599c2282e1d11a34976c533c (diff) |
Have tcap subdissectors registering using functions provided by tcap and tcap manage ssn registration.
In packet-sccp.c avoid not having a binding.
svn path=/trunk/; revision=16834
Diffstat (limited to 'epan/dissectors/packet-inap.c')
-rw-r--r-- | epan/dissectors/packet-inap.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/epan/dissectors/packet-inap.c b/epan/dissectors/packet-inap.c index 9ec870c0ae..2e4bde5f72 100644 --- a/epan/dissectors/packet-inap.c +++ b/epan/dissectors/packet-inap.c @@ -50,6 +50,7 @@ #include "packet-q931.h" #include "packet-e164.h" #include "packet-isup.h" +#include "packet-tcap.h" #define PNAME "Intelligent Network Application Protocol" #define PSNAME "INAP" @@ -348,7 +349,7 @@ static int hf_inap_rrp = -1; /* ReturnResultProblem */ static int hf_inap_rep = -1; /* ReturnErrorProblem */ /*--- End of included file: packet-inap-hf.c ---*/ -#line 65 "packet-inap-template.c" +#line 66 "packet-inap-template.c" static guint tcap_itu_ssn = 106; static guint tcap_itu_ssn1 = 241; @@ -493,7 +494,7 @@ static gint ett_inap_T_rinvokeID = -1; static gint ett_inap_T_rproblem = -1; /*--- End of included file: packet-inap-ett.c ---*/ -#line 83 "packet-inap-template.c" +#line 84 "packet-inap-template.c" static int dissect_invokeCmd(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset); @@ -4985,7 +4986,7 @@ static void dissect_TNoAnswerArg_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tr /*--- End of included file: packet-inap-fn.c ---*/ -#line 87 "packet-inap-template.c" +#line 88 "packet-inap-template.c" const value_string inap_opr_code_strings[] = { @@ -5506,13 +5507,13 @@ void proto_reg_handoff_inap(void) { inap_prefs_initialized = TRUE; } else { - dissector_delete("tcap.itu_ssn", tcap_itu_ssn, inap_handle); - dissector_delete("tcap.itu_ssn", tcap_itu_ssn1, inap_handle); + delete_itu_tcap_subdissector(tcap_itu_ssn, inap_handle); + delete_itu_tcap_subdissector(tcap_itu_ssn1, inap_handle); } tcap_itu_ssn = global_tcap_itu_ssn; tcap_itu_ssn1 = global_tcap_itu_ssn1; - dissector_add("tcap.itu_ssn", global_tcap_itu_ssn, inap_handle); - dissector_add("tcap.itu_ssn", global_tcap_itu_ssn1, inap_handle); + add_itu_tcap_subdissector(global_tcap_itu_ssn, inap_handle); + add_itu_tcap_subdissector(global_tcap_itu_ssn1, inap_handle); } @@ -6657,7 +6658,7 @@ void proto_register_inap(void) { "RejectPDU/rproblem/rep", HFILL }}, /*--- End of included file: packet-inap-hfarr.c ---*/ -#line 658 "packet-inap-template.c" +#line 659 "packet-inap-template.c" }; @@ -6802,7 +6803,7 @@ void proto_register_inap(void) { &ett_inap_T_rproblem, /*--- End of included file: packet-inap-ettarr.c ---*/ -#line 676 "packet-inap-template.c" +#line 677 "packet-inap-template.c" }; /* Register protocol */ |